
General Linux File Locations
This page explains the most important directories of the Linux Filesystem Hierarchy Standard (FHS), such as /etc, /var and /usr. It helps you find configuration files, logs and programs on your Linux server.
Quick Overview: Critical Paths
| Directory | Primary Purpose |
|---|---|
| /bin & /sbin | Essential command binaries for users and administrators. |
| /etc | System-wide configuration files. |
| /home & /root | Personal data for users and the superuser. |
| /var/log | System and application log files. |
/etc – The Configuration Hub
Nearly all system-wide configuration files are located here. Whether you are configuring SSH, networking, or web servers like Apache, this is where the settings reside. Only edit these files with root privileges (sudo) and always back up the original file first.
/var – Variable Data
Contains files that are expected to grow and change frequently.
/usr – User Utilities
Often the largest directory. It contains programs and libraries that are not needed to boot the system but are used in daily operation. On current distributions such as Debian, Ubuntu and AlmaLinux, /bin, /sbin and /lib are merely links to their counterparts in /usr.
- /usr/bin: Non-essential binaries for all users.
- /usr/local: Software installed manually by the administrator.
Specialized Directories
/boot: Files needed to start the system (Kernel, GRUB).
/lib & /lib64: Shared libraries required by system binaries.
/proc: Virtual system providing real-time kernel/process info.
/dev: Represents hardware (disks, USB) as files.
/tmp: Temporary files, often cleared on reboot.
/mnt: Temporary mount point for additional drives.
Looking for more Linux Guides?
Explore comprehensive resources from the wider Linux community to deepen your knowledge.