[英]Linux directory starting with dot
Is there anything special about directories which start with a dot .
关于以点开头的目录有什么特别之处
.
in Linux (Ubuntu), such as ~/.vim
? 在Linux(Ubuntu)中,如
~/.vim
? Thanks. 谢谢。
Files and directories whose names begin with a dot ( .
) by default are not displayed in directory listings by the standard command ls
. 默认情况下名称以点(
.
)开头的文件和目录不会通过标准命令ls
显示在目录列表中。 Therefore, they are traditionally used to store settings, preferences, etc .. Directory ~/.vim
in particular surely contains personal preferences and settings for the text editor vim
. 因此,它们传统上用于存储设置,首选项等 。目录
~/.vim
特别肯定包含文本编辑器vim
个人首选项和设置。
There are also two special directory names in this class: the directory named simply .
此类中还有两个特殊目录名:简单命名的目录
.
is an alias for the same directory in which it appears (a self reference), and the directory named ..
refers to the parent directory of .
是它出现的同一目录的别名(自引用),名为
..
的目录是指父目录.
. 。
Many graphical file browsers ignore the convention of hiding file names beginning with a .
许多图形文件浏览器忽略了隐藏以a开头的文件名的约定
.
, so it is not necessarily correct any longer to call these files "hidden". ,因此将这些文件称为“隐藏”不一定是正确的。 Nevertheless, that terminology persists.
然而,这个术语仍然存在。
In UNIX-like environments, a filename preceded by a dot indicates a hidden file. 在类UNIX环境中,以点开头的文件名表示隐藏文件。 It's mainly a mechanism to decrease clutter in directory listings.
它主要是一种减少目录列表中混乱的机制。 You can get a listing of hidden files by passing the -a parameter to ls
您可以通过将-a参数传递给ls来获取隐藏文件的列表
Those are hidden. 那些是隐藏的。 You'd need to apply extra effort to see them.
你需要付出额外的努力才能看到它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.