QA
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→

More Linux Commands & SysAdmin Interview Questions

Beginner LevelLinux Commands & SysAdmin

How do Linux File Permissions (chmod, chown, chgrp) work in Octal and Symbolic notation?

Beginner LevelLinux Commands & SysAdmin

What are File Descriptors (0=stdin, 1=stdout, 2=stderr) and Redirection (>, >>, 2>&1)?

Beginner LevelLinux Commands & SysAdmin

How does the Linux Pipe operator (|) chain command outputs into inputs?