Uses of Directories and Names:

Definition and Explanation of Directory:

Pile system is used to organize files and other file system objects by using directories. A directory or folder is a file system object that contains other file system objects. Actually, a directory is an object that contains the name of file system objects. In a system with one-to-one mapping between names and objects, the distinction between name and object is not very important. In some file systems, objects can have multiple names or no name, In this situation, the distinction become important.
The entries in directories determine full pathname or names associated with a file system object. Starting with root directory, the full pathname is constructed by concatenating the sequence of names. Consider the file system in the following figure. The directory D1 contains the names: D2, D3 and F1. The directory D2 contains no names. The directory D3 contains the names F1 and F2.
The above organization defines the following six full pathnames on Unix:
  • /D1
     
  • /D1/F1
     
  • /D1/D2
     
  • /D1/D3
     
  • /D1/D3/F1
     
  • /D1/D3/F2
In Windows and DOS, the names would be same. The difference is that front slash "/" will be replaced by back slash "\".

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Blog Archive

Powered by Blogger.

- Copyright © 2013 Taqi Shah Blogspot -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -