Linux Logo

General Linux File Locations

Understanding the Filesystem Hierarchy Standard (FHS) is essential for effective server management. Here is a breakdown of the most important directories.

Quick Overview: Critical Paths

DirectoryPrimary Purpose
/bin & /sbinEssential command binaries for users and administrators.
/etcSystem-wide configuration files.
/home & /rootPersonal data for users and the superuser.
/var/logSystem 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.

/var – Variable Data

Contains files that are expected to grow and change frequently.

/var/log
Centralized logs for troubleshooting.
/var/www
Default storage for website data and HTML files.

/usr – User Utilities

The largest directory on most systems. It contains user-level applications, libraries, and source code.

  • /usr/bin: Non-essential binaries for all users.
  • /usr/local: Software installed manually by the administrator.

Specialized Directories

System Boot & Libraries

/boot: Files needed to start the system (Kernel, GRUB).
/lib & /lib64: Shared libraries required by system binaries.

Virtual & Temporary

/proc: Virtual system providing real-time kernel/process info.
/tmp: Temporary files usually cleared on reboot.

Looking for more Linux Guides?

Explore comprehensive resources from the wider Linux community to deepen your knowledge.