Brief about the directory representation in UNIXA directory in UNIX is a special file that the kernel maintains. Only the kernel modifies the directory while the processes read them. A directory in UNIX is a association between file names and I node and hence the directory content is nothing but a list of filename and inode number pairs. When a directory is created by the kernel, two entries are made; '.' referring to the directory itself) and '..' referring to parent directory.Brief about the directory representation in UNIXA UNIX directory is representing a file that consists of a correspondence between file names and inodes. UNIX treats the directory as a special file. This file is maintained by the kernel. Processes can read the directories and only kernel modifies these directories. At the time of a directory creation, kernel makes two entries namely directory itself and parent directory.
|