Beginner LevelLinux Commands & SysAdmin
What is the Linux Filesystem Hierarchy Standard (/bin, /etc, /var, /usr, /opt, /tmp)?
❓ Interview Prompt: Explain standard Linux directory layout definitions according to FHS.
The Filesystem Hierarchy Standard (FHS) defines the structure and directory contents in Linux operating systems:
•
/bin & /sbin: Essential system binaries and administrative commands.
•
/etc: Host-specific system configuration files.
•
/var: Variable data files (system logs '/var/log', databases, mail spools).
•
/usr: Secondary hierarchy for user read-only data, documentation, and binaries ('/usr/bin').
•
/opt: Optional add-on third-party software packages.
•
/tmp: Temporary files automatically cleared upon system reboot.
Code Implementation Example
bash
# View directory structure and file system hierarchy
ls -la /
# Inspect system logs in /var/log
ls -lh /var/log
# Inspect system configuration files in /etc
ls -la /etc💡Inspecting root directory structures following Linux FHS standards.
🎯 Interview Key Takeaway
Understanding the Filesystem Hierarchy Standard (FHS) ensures proper placement of configuration, log, and binary files.
#FHS#Filesystem#Directories#Beginner
Back to all Linux Commands & SysAdmin Questions→