pathname(名词):(计算机)路径名,指在文件系统中用于定位文件或目录的一串字符,通常包含一个或多个目录层级(如 /home/user/file.txt)。也常写作 path name。有时更宽泛地指“文件路径”。
/ˈpæθˌneɪm/
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.
如果路径名不正确,程序就找不到配置文件,导致无法启动。
由 path(路径)+ name(名称)构成的复合词。计算机语境中的用法在类 Unix 系统与相关文档中非常常见,用来表示“用于标识文件系统位置的名称”。
open(2), stat(2), path_resolution(7))——手册页里常用 pathname 指代系统调用的路径参数。