QuickDevGuide

Home › Linux Administration & Deployment

Filesystem Hierarchy & Paths — Linux Administration & Deployment

Everything in Linux lives under a single root / — disks, USB drives and network shares are mounted into that tree. Directory Contains /etc system configuration (/etc/nginx, /etc/ssh/sshdconfig) /home/<user> user home directories () /root the root user's home /var variable data: /var/log, /var/lib (databases), /var/www /usr installed software: /usr/bin, /usr/lib, /usr/local (your own builds) /opt self-contained third-party apps /tmp temporary files (often cleared on reboot) /dev, /proc, /sys devices and kernel/process information as files /srv data served by this system /mnt, /media mount points Paths Absolute: starts at / → /var/log/syslog Relative: from the current directory → ../logs/app.log . current, .. parent, home, - previous directory (cd -) Names are case-sensitive; hidden files…

Key Takeaways