Professional Documents
Culture Documents
► The simplest form of the directory system is a directory that contains all of the files, also known as the root
directory. This system was common in earlier PCs because there was only one user.
► The world's first supercomputer, the CDC 6600, also had only a single directory for all files and was used by
multiple users concurrently.
► This system was created to keep every software design as simple as possible. The diagram below depicts an
example of this system.
► Two-level directory systems are used to avoid the problems caused by the single-level directory
system, as we have learned in the previous section.
► In two-level directory systems, give each user a private directory. So, in this two-level directory
system, the names chosen by one user don't affect the names chosen by another user, and having the
same name in two or more directories doesn't cause any problems.
► The path from the top-level directory all the way down to the file is what the
"absolute path name" refers to. As an example, the path
► means that the root directory has a subdirectory called usr, which has another
subdirectory called codescracker, which has a file called myfile inside of it. The
file is located within the codescracker directory.
► The relative path name is used in conjunction with the concept of the working directory or
current directory.
► A user can designate one directory as the current working directory, in which case all the
path names not beginning at the root directory are taken relative to the working directory.
► If the current working directory is /usr/codescracker, for example, the file whose absolute
path is /usr/codescracker/myfile can now be called myfile.
Character Special Files
►Character special files are mostly about I/O and are used
to model serial input/output devices like printers,
networks, and so on.
Block Special Files