[Next] [Previous] [Up] [Top] [Contents]

4.1 File Systems

4.1.4 Directories

Each directory contains the names of files within the directory and the inode numbers associated with these files. A directory is just an ordinary file in the data block area. It's a binary file, which contains tabular information similar to (e.g. for /usr):

2 .

2 ..

3 lost+found

2688 export

5376 bin

10752 ucb

13440 etc

26880 include

4570 lib

94123 hosts

7 boot

102177 local

...

where the current directory (.) and the parent directory (..) are the same, because /usr is on a separate disk partition. lost+found is created by newfs for use by fsck.


Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]