← ../

linux filesystem hierarchy

Different distributions have different directory structures, despite attempts at standardization such as the the Linux Filesystem Hierarchy Standard (FHS) organization.

/bin - essential UNIX commands such as ls, etc. Should contain all binaries needed to boot the system or run it in single-user mode (on modern systems, it now often a symlink to /usr/bin)

/boot - files used during booting and possibly the kernel itself are stored here

/dev - contains device files for various devices on system

/etc - files used by subsystems such as networking, NFS, and mail. Includes tables of disks to mount, processes to run on startup, etc.

/etc/profile.d - contains scripts that are run by /etc/profile upon login.

/etc/skel - directory containing several example or skeleton initialization shells. Often contains subdirectories and files used to populate a new user's home directory.

/etc/X11 - configuration files for the X Window system

/home - home directories of individual users

/lib - standard shared library files

/lib/modules - contains kernel object (ELF object file with the ".ko" extension) that can be dynamically linked into the kernel at any point after the system has booted; e.g : device drivers, pseudo-device drivers such as network drivers, or file-systems.

/mnt - typical mount point for many user-mountable devices such as floppy drives, cd-rom readers, etc. Each device is mounted on a subdirectory of /mnt.

/proc - virtual file system that provides a number of system statistics

/root - home directory for root

/sbin - location of binaries used for system administration, configuration, and monitoring (on modern systems, it now often a symlink to /usr/sbin)

/tmp - directory specifically designed for programs and users to store temporary files.

/usr - directory containing a number of subdirectory with programs, libraries, documentation, etc.

/usr/bin - contains user commands and all binaries needed to boot the system.

/usr/bin/X11 - contains executable binaries related to the X Window system

/usr/doc - location of miscellaneous documentation, and the main location of program documentation files under Slackware

/usr/include - standard location of include files used in C programs such as stdio.h

/usr/lib - standard library files such as libc.a. Searched by the linker when programs are compiled.

/usr/local/bin - yet another place to look for common executables

/usr/share/man - location of manual page files

/usr/sbin - other commands used by superuser for system administration

/usr/share - contains subdirectories where many installed programs have configuration, setup and auxiliary files

/usr/src - location of source programs used to build system. Source code for programs of all types are often unpacked in this directory.

/var/spool - temporary storage for files being printed, mail that has not yet been picked up, etc.