Linux-Directory Layout


The nameless base of the file system. All other directories, files, drives, and devices are attached to this root. Commonly (but incorrectly) referred to as the “slash” or “/” directory. The “/” is just a directory separator, not a directory itself.
Essential command binaries (programs) are stored here (bash, ls, mount, tar, etc.)
Static files of the boot loader.
Device files. In Linux, hardware devices are accessed just like other files, and they are kept under this directory.
Host-specific system configuration files.
Location of users' personal home directories (e.g./home/dhanoop).
Essential shared libraries and kernel modules.
Process information pseudo-file system. An interface to kernel data structures.
The root (super-user) home directory.
Essential system binaries (fdisk, fsck, init, etc).
Temporary files. All users have permission to place temporary files here.
The base directory for most shareable, read-only data (programs, libraries, documentation, and much more).
Most user programs are kept here (cc, find, du, etc.).
Header files for compiling C programs.
Libraries for most binary programs.
Locally” installed files. This directory only really matters in environments where files are stored on the network. Locally-installed files go in /usr/local/bin, /usr/local/lib, etc.). Also often used for software packages installed from source, or software not officially shipped with the distribution.
Non-vital system binaries (lpd, useradd, etc.)
Architecture-independent data (icons, backgrounds, documentation, terminfo, man pages, etc.).
Program source code. E.g. The Linux Kernel, source RPMs, etc.
The X Window System.
Variable data: mail and printer spools, log files, lock files, etc.

Post a Comment