Linux 以两个点作为前缀的目录名是什么意思?

Linux 以两个点作为前缀的目录名是什么意思?,linux,shell,ls,Linux,Shell,Ls,我在Linux系统中获得了以下文件层次结构。想知道在目录名前加两个点是什么意思吗 /run/mydir # ls -la total 4 drwxrwxrwt 3 root root 140 Sep 22 13:03 . drwxr-xr-x 3 root root 4096 Sep 30 06:26 .. drwxr-xr-x 2 root root 100 Sep 22 13:03 ..201

我在Linux系统中获得了以下文件层次结构。想知道在目录名前加两个点是什么意思吗

/run/mydir # ls -la
total 4
drwxrwxrwt    3 root     root           140 Sep 22 13:03 .
drwxr-xr-x    3 root     root          4096 Sep 30 06:26 ..
drwxr-xr-x    2 root     root           100 Sep 22 13:03 ..2019_09_22
lrwxrwxrwx    1 root     root            31 Sep 22 13:03 ..data -> ..2019_09_22
lrwxrwxrwx    1 root     root            13 Sep 22 13:03 address -> ..data/address
lrwxrwxrwx    1 root     root            16 Sep 22 13:03 name -> ..data/name
lrwxrwxrwx    1 root     root            12 Sep 22 13:03 cell -> ..data/cell

/run/mydir # ls -la ../
total 8
drwxr-xr-x    3 root     root          4096 Sep 30 06:26 .
drwxr-xr-x    3 root     root          4096 Sep 30 06:26 ..
drwxrwxrwt    3 root     root           140 Sep 22 13:03 mydir
/run/mydir #

始终有两个默认目录:

  • 单周期(.)=当前目录
  • 双句点(..)=父目录

  • 它没有任何意义,只是
    ls
    通常不会列出名称,因为第一个字符是点
    。要查看以点开头的名称,您需要
    ls-a
    或其附近,如您所示。它看起来像是一种约定,在您的计算机上具有root权限的人喜欢将其作为识别其他目录的一种方式,但仅此而已


    我们可以猜测,随着时间的推移,最终可能会有其他目录,如
    .2019\u 09\u 29
    ,并且
    .data
    可能会被操纵以指向当前正在分析的目录,但这只是猜测。

    但问题是关于
    。数据
    。2019\u 09\u 22
    而不是
    。普通的
    没有两个点<代码>。
    实际上没有两个点作为前缀。请注意,有关UNIX使用(而不是在UNIX系统上或为UNIX系统编写代码)的问题属于或,而不是堆栈溢出。