Jun 16, 2009

Chart of Directory path in Linux.

/
•This directory is called the ‘root’directory.
•It is at the top of the file system structure.
•All other directories are placed under it.

/root
•This is the default home directory of the root.
–Note: In Linux/Unix the administrator is called as root.

/home
•It contains the home directories of all users (similar to ‘Documents and Setting’ folder in Windows). •When any user logs in the current working directory by default is the users home directory.

/boot
•It contains the kernel, which is the core of the operating system.
•It also contains the files related for booting the OS such as the boot loader.

/sbin
•sbin stands for system binary.
•It contains essential system commands which can only be used by the superuser(root).
•Example:-fdisk, dump, etc.

/bin
•bin stands for binary.
•It contains essential commands which are used by all users.
•Example:-ping, cat, chmod, etc.

/usr
•usr stands for Unix system resources
•It contains the programs and applications which are available for users (similar to program files in Windows).

/var
•var stands for variable•
It contains variable information, such as logs and print queues.

/dev
•dev stands for device
•It contains information about all hardware devices.

/etc
•etc stands for etc etera
•Contains all the configuration files.

/opt
•opt stands for optional
•It generally contains the third party software's.
Example:-Open Office, Kaspersky Antivirus etc.

/media
•It is the default mount point for removable storage media such as cdrom/dvd and pendrives, etc.