Chapter 8. UNIX File System Hierarchy

   

Chapter Syllabus

8.1 Static and Dynamic Files

8.2 The Root Directory (/)

8.3 The Devices Directory (/dev)

8.4 The /etc Directory

8.5 The Home Directory (/home)

8.6 The System Binary Directory (/sbin)

8.7 The /stand Directory

8.8 The /net Directory

8.9 The Applications Directory (/opt)

8.10 The Temporary File Directory (/tmp)

8.11 The /usr Directory

8.12 The Variable Files Directory (/var)

8.13 The lost+found Directory

8.14 Some Useful Commands Related to File System Hierarchy

UNIX files and directories are arranged in a systematic way, like a tree structure. The root directory is represented by the slash symbol ( / ). It serves as the root of this directory tree. By file system layout, we mean the arrangement of files and directories in a directory tree. It does not mean the actual physical format of the disk drive but shows only logical arrangement. Directories in UNIX are named and arranged in a fashion that have particular meaning for users. Every directory contains a particular set of files related to some defined purpose or task. For example, all files in the /etc directory are related to some sort of system configuration task. Similarly, the home directories of all users are usually kept in the /home directory.

There are two major types of file system hierarchies used in UNIX distributions. One of these is based on Berkley Distribution of UNIX (BSD) and the other is AT&T System V. The file system layout of HP-UX version 10.x and above is based on AT&T system V release 4 (SVR4). The directory structure starts with the root directory. All other directories are named relative to the root directory. There are two major groups of these directories. One is the group in which system files are present and don't change frequently. This is the static part of the directory hierarchy. The other group contains those files and directories that are changed on a routine basis and are sometimes called dynamic files and directories. An example of this type of file is log files that change on a day-to-day basis. Another division of directories may also be based on shared and nonshared files.

This chapter contains an introduction to the directory tree and the types of files in each directory. We will describe what directories are related to system files and what are used by HP-UX users. Through a careful study of the chapter, a user will build understanding of how to quickly find different files and directories used for particular purposes. As examples, you will learn where files containing manual pages are located and what directory contains files related to network administration.


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net