加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

unix – 关于目录路径你怎么称呼“..”?

发布时间:2020-12-16 01:51:27 所属栏目:安全 来源:网络整理
导读:我无法在任何地方找到这个名字.我见过“up”,“parent”,“包含文件夹”,“双点”,“点点”,但我找不到它的正式名称.例如,如果您尝试向上移动目录: ~ $cd ../HristoOskov/ …你怎么称呼点?..? 解决方法 我通常只使用术语current和parent目录,或者如果我给
我无法在任何地方找到这个名字.我见过“up”,“parent”,“包含文件夹”,“双点”,“点点”,但我找不到它的正式名称.例如,如果您尝试向上移动目录:

~ $cd ../HristoOskov/

…你怎么称呼点?..?

解决方法

我通常只使用术语current和parent目录,或者如果我给某人口头指示(例如拼写出bash命令),则使用“dot”和“dot dot”.

我见过的大多数技术文档都明确地用“.”引用它们.和“..”(有时使用单引号.)

例如,kernel.org on path resolution:

By convention,every directory has the entries "." and "..",which refer to
the directory itself and to its parent directory,respectively.

The path resolution process will assume that these entries have their
conventional meanings,regardless of whether they are actually present in the
physical file system.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读