Filesystem
Linux

The linux system filesystem is most of the time divided into the following structure:
Directory Description
/ Notes the top-level root directory. All other directories are subdirectories.
/bin Adds essential command line utilities. Should not be mounted
separately; otherwise, it could be difficult to get to these utilities when
using a rescue mode.
/boot Includes several Linux boot files, including the Linux kernel. If
mounted separately, 100MB is usually sufficient for several kernels.
Generally should not be mounted on a logical volume or RAID device.
/dev Specifies hardware and software device drivers such as USB drives and
console terminals. Do not mount this directory on a separate partition.
/etc Sets most basic host-specific configuration files; several /etc
subdirectories are specified in the FHS, including /etc/X11.
/home Includes home directories for every user (except root).
/lib Adds program libraries for /bin and /sbin command line utilities and
the kernel. Do not mount this directory on a separate partition.
/media Incorporates mount points for removable media and unassigned
volumes. Examples include floppy disks (/media/floppy) and CD/
DVDs (/media/cdrom). Unassigned volumes may be associated with
partitions; for example, /dev/sda6 can be mounted as /media/sda6.
/misc Includes a standard mount point for local directories mounted via the
automounter; not a formal part of the FHS.
/mnt Adds a legacy mount point; formerly used for removable media,
commonly used for temporary filesystems.
/net Includes a standard mount point for network directories mounted via
the automounter; not a formal part of the FHS.
/opt Incorporates a common location for third-party application files.
/proc Specifies 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 Notes the home directory of the root user.
/sbin Adds system administration binary commands. Don’t mount this
directory separately.
/smb Includes the standard mount point for remote shared Microsoft Network
directories mounted via the automounter; not a formal part of the FHS
/srv Specifies a directory commonly used by network servers.
/tmp Includes temporary files.
/usr Adds small programs accessible to all users. Includes many system
administration commands and utilities in subdirectories such as
/usr/bin.
/var Includes variable data, including log files and printer spools.

Linux

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License