Sunday, September 6, 2009

Linux File System and Directory Structure


As we all know that Linux gets installed under / (root) file system and under / there are different sub directories, each has got separate task and meaning. Here is a list of all those directories and some explanation about them.

/
The root directory, it is a top level directory where our Linux gets installed.
/bin
Binary Directory; it stores all essential commands working under OS.
/boot
As the name suggests this directory holds all the files which are required to boot our Linux OS.
/dev
Hardware and Software device drivers for all the devices.
/etc
It holds all of the basic system configuration files for different services and utilities of Linux.
/home
Home directory for almost every user.
/lib
Program libraries for the Kernel and different command and other utilities.
/media
Mount point for removable devices likes floppy, DVDs, Pen Drives or Zip Drives etc.
/misc
The standard mount point for local directories mounted via the automounter.
/mnt
A legacy mount point; formerly used for removable media.
/net
The standard mount point for network directories mounted via the automounter.
/opt
Common location for third-party applications and their files.
/proc
Currently running kernel-related processes, including device assignments such as IRQ ports, I/O addresses, and DMA channels, as well as kernel configuration settings such as IP forwarding.
/root
The home directory of the root user.
/sbin
System administration commands.
/selinux
Currently configured settings associated with Security Enhanced Linux.
/srv
Commonly used by various network servers on non-Red Hat distributions.
/tftpboot
Included if the TFTP server is installed.
/tmp
Temporary files. By default, Red Hat Enterprise Linux deletes all files in this directory periodically.
/usr
Small programs accessible to all users. Includes many system administration commands and utilities.
/var
Variable data, including log files and printer spools.

So, this is a complete Directory Hierarchy of Linux OS. A person who wants to work with Linux OS he/she should have knowledge of this Directory Structure so He/She can work with it very smoothly.


No comments:

Post a Comment