Home » OS Two level Directory

OS Two level Directory

by Online Tutorials Library

Two Level Directory

In two level directory systems, we can create a separate directory for each user. There is one master directory which contains separate directories dedicated to each user. For each user, there is a different directory present at the second level, containing group of user’s file. The system doesn’t let a user to enter in the other user’s directory without permission.

os Two Level Directory

Characteristics of two level directory system

  1. Each files has a path name as /User-name/directory-name/
  2. Different users can have the same file name.
  3. Searching becomes more efficient as only one user’s list needs to be traversed.
  4. The same kind of files cannot be grouped into a single directory for a particular user.

Every Operating System maintains a variable as PWD which contains the present directory name (present user name) so that the searching can be done appropriately.

You may also like