UNIX file structure

The unix file system called as hirerachical file system. In fact whith in the UNIX system there is no limit to the number of files and directories you can create in directory that you own. File system of this type are often called tree structured file systems, because each directory allow you to branch off into other directories and files.

The unix file system resembles an upside dow tree.

 

unix file system

/ root : This is the root directory of the file system, the main directory of the entire file system, and the root directory for the super user.

/etc: This contains system administration and configuration databases.

/bin: bin statns for binary, this directory contains executable files for most of the unix commands. Unix commands can be eaither C programs or shell programs. Shell programs are nothing but a collection of unix commands.

/dev: This contains the special files that include terminals, printers, and storage devices. These files contain device numbers that identify devices to the oiperating system, including /dev/console –> the system console.

In unix, similar devices are located in subdirectories of /dev, for example all disk devices are in the subdirectory of /dev/disk and so on…

/lib : This directory contains all the library functions provided by unix for programmers. The programes written under unix make use of these library functions in the “lib” directory.

/sbin: This contains programs used in booting the system and system recovery.

/opt: this is the root for the sub-tree containing the add-on application packages.

/home: This contains the home directories and files of all users. If the logname is k2schools, your default home directory is /home/k2schools.

/tmp: This contains all temporary files used by the unix system.

/mnt: contains entries for removable media such as CD-ROMs and DLT tapes.

/unix: This directory contains unix kernal programming.

/usr: This contains other accessible directories such as /user/bin.

       /user/bin: contains many executable programs and unix system utilities.

       /user/games: contains binaries for game programs and data for games.

       /user/lib: contains libraries for programs and programming languages.

       /user/sbin: contains executable programs for system administration.

       /user/share/man: contains the online manual pages.

/var: this contains the directories of all files that vary among systems. These include files that log system activity, accounting files, mail files, application packages , backup files for editors, and many other types of files that vary from system to system.

Files in the directory include:

       /var/adm: contains system logging and accounting files.

       /var/mail: contains user mail files.

       /var/news: contains messages of common intrest.

       /var/opt: is the root of a subtree contains add-on application packages.

       /var/tmp: directory for temporary files.

      /var/uucp: contains log and status files for the UUCP system.

Related Posts

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by k2schools