Unix File System Hierarchy

Unix File System Hierarchy
/: This is the top level working directory. It is parent directory for all other directories. It is called as root directory.

root: This is home directory for root user(super user). It provides working environment for root user.

home: This is home directory for other users. It provides working environment for other users(except root).

bin(Binary files):It contains commands used by all users.

sbin(Super User inary files):It contains commands used by only super user(root).

boot: It contains system bootable files, bootloader information, Kernel related information for Linux.

etc: etc directory contains all System configuration files.

usr: By default softwares are installed in /usr directory.

opt: This is optional directory for users. It contains third party softwares.

dev: It contains all device files information. Similar to device manager of Windows operating System. In Linux every device treated as a file.

var: Contains variable files information like mails, log files.

mnt: This is default removable media working directory. This is empty by default.

lib: It contains library files which are used by operating system. It is similar to dll files in Windows.

tmp: It contains temporary files information.

media: It contains all of removable media like CD-ROM, pen drive..

proc: It contains process files. Contents are not permanent, they keep changing. This is also virtual directory.

Powered by k2schools
Skip to toolbar