Operating Systems & Control Panels

How can we help?

Guides and technical documentation for your Server4You dedicated server or VPS.

Linux Logo

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

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. 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.

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

/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

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.
/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.