V2EX  ›  英汉词典

Pathname

释义 Definition

pathname(名词):(计算机)路径名,指在文件系统中用于定位文件或目录的一串字符,通常包含一个或多个目录层级(如 /home/user/file.txt)。也常写作 path name。有时更宽泛地指“文件路径”。

发音 Pronunciation

/ˈpæθˌneɪm/

例句 Examples

I copied the pathname into the terminal.
我把路径名复制到终端里了。

If the pathname is wrong, the program won’t be able to find the configuration file and will fail to start.
如果路径名不正确,程序就找不到配置文件,导致无法启动。

词源 Etymology

由 path(路径)+ name(名称)构成的复合词。计算机语境中的用法在类 Unix 系统与相关文档中非常常见,用来表示“用于标识文件系统位置的名称”。

相关词 Related Words

文学/著作中的用例 Literary Works

  • The UNIX Programming Environment(Brian W. Kernighan, Rob Pike)——讨论 Unix 工具与文件系统时常用到 pathname。
  • Advanced Programming in the UNIX Environment(W. Richard Stevens, Stephen A. Rago)——在文件 I/O、路径解析等章节频繁出现。
  • *POSIX.1 (IEEE Std 1003.1)*——标准文本中大量使用 pathname 来描述接口参数与路径语义。
  • Linux man-pages(如 open(2), stat(2), path_resolution(7))——手册页里常用 pathname 指代系统调用的路径参数。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5092 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 06:37 · PVG 14:37 · LAX 23:37 · JFK 02:37
♥ Do have faith in what you're doing.