=

Linux Directory Structure

Guide to Linux Directory Structure - image

DirectoryDescription
/The root directory is the topmost directory in the Linux filesystem hierarchy. It contains all other directories and serves as the starting point for all file paths.
/binContains essential command-line programs and utilities available to all users. These are typically statically linked to avoid dependency issues.
/bootStores boot loader files and kernel images necessary for the operating system to load during startup.
/devContains device files representing hardware devices connected to the system.
/etcHolds system-wide configuration files for various system components and applications.
/homeStores home directories for regular users. Each user has their own subdirectory under /home.
/libLibraries required for running executable programs. It contains shared libraries.
/lib32Contains 32-bit libraries for compatibility with older applications.
/lib64Contains 64-bit libraries for modern applications.
/mediaA mount point for removable storage devices such as CDs, DVDs, USB drives, etc.
/mntA temporary mount point for filesystems. Used for mounting external drives or network shares.
/optOptional application software packages. Third-party applications often install here.
/procProvides process and system information through pseudo-files and directories.
/rootThe home directory for the root user.
/runContains runtime data and sockets. Replaces /var/run and /var/lock.
/sbinSystem administration binaries. Contains essential system programs.
/srvData directory used by services, site-specific data which might rotate servers.
/sysProvides access to system information and is used for communication between the kernel and user-space processes.
/tmpTemporary files created by users or system processes. Its a volatile space.
/usrContains user programs and documentation. Includes /usr/bin for user executables and /usr/share for architecture-independent data.
/varVariable data files. Contains logs, caches, and spools.