Table of Contents

Debian Filesystem

Debian follows the Filesystem Hierarchy Standard (FHS), a standard layout for Linux filesystems. Understanding the directory structure helps you find files, configure systems, and write portable scripts.

Key directories:

$ ls /                          # list root directories
$ df -h                         # show disk usage by filesystem
$ mount                         # show mounted filesystems
$ du -sh /var/log              # disk usage of a directory

Tip: Configuration files in /etc usually have .dist backups. Always back up /etc before making changes—it's your system's personality.