“."在哪里和".."来自何处? [英] Where does '.' and '..' come from?
问题描述
./foo
和cd ..
大规模重新定义的背后是什么故事.这两个.
和..
来自何处?在哪里可以将它们视为第一次浏览文件系统树的方法?
What's the story behind our massive repitition of ./foo
and cd ..
. Where do these two .
and ..
come from? Where could they be seen as a way of navigating a file system tree for the first time?
推荐答案
Excerpt from an interview with Ken Thompson (9-6-89):
每次我们建立目录时, 约定,我们把它放在另一个 目录称为目录- 目录,它是dd.它的名字是 dd和所有用户目录 实际上是大多数其他目录, 用户维护自己的目录 系统,指针指向dd,和 dd缩写为点号" ,然后 dd用于目录-目录.
Every time we made a directory, by convention we put it in another directory called directory - directory, which was dd. Its name was dd and that all the users directories and in fact most other directories, users maintain their own directory systems, had pointers back to dd, and dd got shortened into ‘dot-dot,’ and dd was for directory-directory.
这篇关于“."在哪里和".."来自何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!