directory.5
来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 5 代码 · 共 31 行
5
31 行
.th DIRECTORY V 9/10/73.sh NAMEdir \*- format of directories.sh DESCRIPTIONA directorybehaves exactly like an ordinary file, save that nouser may write into a directory.The fact that a file is a directory is indicated bya bit in the flag word of its i-node entry.Directory entries are 16 bytes long.The first word is the i-number of the file representedby the entry, if non-zero; if zero, the entry is empty..s3Bytes 2-15 represent the (14-character)file name, null padded on the right.These bytes are not cleared for empty slots..s3By convention, the first two entries in each directoryare for ``\fB.\fR'' and ``\fB..\fR''. The first is an entry for thedirectory itself. The second is for the parentdirectory.The meaning of ``\fB..\fR'' is modified for the root directoryof the master file system and for the root directories of removablefile systems.In the first case, there is no parent, and in the second,the system does not permit off-device references.Therefore in both cases ``\fB..\fR'' has thesame meaning as ``\fB.\fR''..sh "SEE ALSO"file system (V)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?