You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overview of the Linux filesystem hierarchy with what each top-level directory is used for, plus a focused list of important configuration, user, network, SSH, logs, and service files (passwd/shadow, hosts, resolv.conf, fstab, cron, Apache logs, etc.).
Linux File System Structure & Key Files (Quick Reference)
Overview of the Linux filesystem hierarchy with what each top-level directory is used for, plus a focused list of important configuration, user, network, SSH, logs, and service files (passwd/shadow, hosts, resolv.conf, fstab, cron, Apache logs, etc.).
File system structure (directories)
Path
Explanation
/bin
Essential user command binaries (basic tools needed for boot/single-user). On many systems now merged into /usr/bin.
SSH user keys and config: id_rsa, authorized_keys, known_hosts, config. (Your -/.ssh/ corrected.)
/var/log/
Linux log directory (auth, syslog, kernel, services).
/var/adm/
Traditional Unix log/admin directory on some Unix systems. (Your /var/adrn corrected.)
/var/spool/cron/
Per-user cron spools on some distros (implementation varies).
/var/log/apache2/access.log
Apache access log on Debian/Ubuntu-based systems (path may differ).
/etc/fstab
Static filesystem mount configuration (mount points, options, UUIDs).
Common “good to know” related paths (often used with the above)
Path
Explanation
/var/log/auth.log
Auth events (Debian/Ubuntu). On RHEL-based systems often /var/log/secure.
/var/log/syslog
General system log (Debian/Ubuntu).
/var/log/messages
General system log on some distros (often RHEL/CentOS).
/etc/ssh/sshd_config
SSH server configuration.
/etc/sudoers and /etc/sudoers.d/
Sudo policy configuration.
/etc/crontab, /etc/cron.d/, /etc/cron.daily/
System-wide cron configuration and scheduled jobs.
/var/www/html/
Common web root (varies by distro/web server config).
/etc/systemd/system/
Systemd unit overrides and custom services.
/usr/bin/, /usr/sbin/
Main executable locations on modern systems (often where /bin and /sbin effectively point).
If you want, I can format this as a one-page printable table (A4) or expand each key file with “what to look for” examples (users/shells in passwd, sudo rules, DNS search domains, fstab options like noexec, etc.).