Making Directories
Explore the process of creating directories in UNIX using the mkdir system call and program. Understand how directories are structured with entries for self and parent, why you cannot write directly to them, and the importance of filesystem metadata. Learn safe practices for directory and file removal to avoid critical errors.
We'll cover the following...
Beyond files, a set of directory-related system calls enable you to make, read, and delete directories. Note you can never write to a directory directly. Because the format of the directory is considered file system metadata, the file system considers itself responsible for the integrity of directory data. Thus, you can only update a directory indirectly by, for example, creating files, directories, or other object types within it. In this way, the file system makes sure that ...