【问题标题】:what do you call the ".." in regards to directory paths?关于目录路径,您如何称呼“..”?
【发布时间】:2011-11-15 05:28:18
【问题描述】:

我在任何地方都找不到这个名字。我见过“向上”、“父”、“包含文件夹”、“双点”、“点点”,但我一直找不到它的正式名称。例如,如果您尝试向上移动目录:

~ $ cd ../HristoOskov/

...你怎么称呼点..

【问题讨论】:

  • 在挪威语中,它将是“prikk-prikk”(点-点)或“punktum-punktum”(句号)或“foreldremappa”(父文件夹)或(开玩笑地)“morra”(母亲);)

标签: unix terminal terminology


【解决方案1】:

我个人在对话中称其为“dot dot”、“up one”和“parent directory”。有一两次我把它叫做椭圆,我的朋友拍了拍我的脸,把我的啤酒拿走了。他们惩罚我是对的。

【讨论】:

  • 天哪,我想知道如果我使用省略号来描述父目录,办公室周围的任何人是否会认为这是一个笑话。 +1
【解决方案2】:

我通常只使用术语当前目录和父目录,或者如果我给某人口头指示(例如拼写输出一个 bash 命令。)

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

例如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.

【讨论】:

    【解决方案3】:

    我认为没有什么特别的名字。我个人称之为父目录。

    【讨论】:

      猜你喜欢
      • 2016-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多