V2EX  ›  英汉词典
Enqueued related words: Pwd

Cwd

释义 Definition

cwd 是计算机领域常用缩写,指 current working directory,即“当前工作目录”:程序或终端会话在文件系统中默认进行相对路径读写操作的位置。

发音 Pronunciation

/ˌsiː dʌbəl.juː ˈdiː/

例句 Examples

My cwd is my home folder.
我的当前工作目录是我的主文件夹。

If the script can’t find the file, check whether the cwd is set correctly before using a relative path.
如果脚本找不到文件,使用相对路径之前先检查当前工作目录是否设置正确。

词源 Etymology

cwd 来自短语 current working directory 的首字母缩写。该概念在类 UNIX 系统与命令行环境中非常常见,用于描述进程运行时“所处”的目录;很多语言与工具(如 Python、Node.js、Git、shell)都会提供获取或更改 cwd 的方法。

相关词 Related Words

文学与作品 Literary Works

  • The Linux Command Line(William E. Shotts, Jr.)
  • Automate the Boring Stuff with Python(Al Sweigart)
  • UNIX and Linux System Administration Handbook(Evi Nemeth 等)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1867 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 11:04 · PVG 19:04 · LAX 03:04 · JFK 06:04
♥ Do have faith in what you're doing.