Home > Blog > CompTIA CompTIA A+ Certification Exam Core 2 > Linux File System Hierarchy (FHS) Guide for CompTIA A+

Linux File System Hierarchy (FHS) Guide for CompTIA A+

Study Guide Cert Sensei Team 2037-11-22 8 min read

The Linux File System Hierarchy Standard (FHS) organizes files in a tree-like structure starting from the root (/). Key directories include /etc for system configurations, /bin and /sbin for essential binaries, /var for variable data like logs, and /home for user files, ensuring consistency across different Linux distributions.

#Linux file system hierarchy A+ #CompTIA A+ Core 2 #220-1102 Study Guide #Linux FHS #IT Certification

Why does the Linux File System Hierarchy matter for the A+ exam?

If you're coming from a Windows background, the first thing you'll notice is that Linux doesn't have a C: or D: drive. Everything starts at the root, represented by a single forward slash (/). For the CompTIA A+ Core 2 (220-1102) exam, you aren't expected to be a kernel developer, but you must know exactly where the OS stores its critical components to troubleshoot effectively.

Understanding the File System Hierarchy Standard (FHS) is a core requirement because it allows you to navigate any Linux distribution—whether it's Ubuntu, Fedora, or CentOS—with confidence. When an exam question asks where to find a configuration file or a system log, you shouldn't be guessing. You need to recognize the pattern of the tree structure to identify the correct directory immediately.

Where are system configurations stored in /etc?

Think of the /etc directory as the 'Control Panel' of the Linux world. This is where the system stores almost all of its global configuration files. If you need to change the system's hostname, edit network settings, or manage user passwords via the /etc/passwd and /etc/shadow files, this is where you'll head.

For the A+ exam, remember that files in /etc are typically text files. This means you can edit them using simple command-line editors like nano or vi. A practical tip: whenever you're tasked with modifying how a service starts or behaves on a Linux machine, your first stop should almost always be /etc. Mastering this directory is key to passing the OS domain of the 220-1102 exam.

What is the difference between /bin, /sbin, and /usr/bin?

This is one of the most confusing areas for students, but here is the breakdown. The /bin directory contains essential binaries (executable programs) that are required for the system to run in single-user mode—think of basic commands like ls, cp, and mkdir. On the other hand, /sbin contains 'system binaries.' These are tools intended for the system administrator (root), such as fdisk for partitioning or iptables for firewall management.

Then we have /usr/bin, which houses the majority of user-level executable programs that aren't critical for the system to boot. While many modern Linux distributions now use symbolic links to merge these into a single /usr directory, the A+ exam still tests your knowledge of these traditional distinctions. If the command is for a general user, it's likely in /bin or /usr/bin; if it's for administrative maintenance, it's in /sbin.

Why is /var critical for troubleshooting and logs?

The /var directory is short for 'variable.' As the name suggests, this directory holds files that are expected to grow and change constantly while the system is running. The most important subdirectory for any A+ candidate is /var/log. This is where the system stores its journals, authentication logs, and kernel messages.

When you're faced with a troubleshooting scenario on the exam—such as a service failing to start or a suspected security breach—your first move should be to check /var/log. Additionally, /var handles spools (like print queues) and temporary cached data. Because these files grow rapidly, system administrators often place /var on its own separate partition to prevent a runaway log file from filling up the root partition and crashing the entire OS.

How are user files managed in /home and /root?

Linux maintains a strict separation between system files and user data. For standard users, the /home directory is the primary hub. Each user gets their own subdirectory (e.g., /home/sarah) where they have full read/write permissions for their personal documents, downloads, and desktop settings. This ensures that one user cannot accidentally delete another user's work.

However, the superuser (root) is different. To ensure the administrator can still log in even if the /home partition is corrupted or unmounted, the root user has their own dedicated home directory located at /root. This is a critical security and stability feature. When you're navigating the CLI, remember that 'cd ~' will take you to your specific home folder, regardless of whether you are a standard user or the root administrator.

How can you master these paths for the 220-1102 exam?

Reading a list of directories is one thing, but applying that knowledge under the pressure of a timer is another. The best way to lock this in is through active recall and repetition. We recommend spending at least 10-15 hours of hands-on lab time navigating a live Linux terminal using the 'cd', 'ls', and 'pwd' commands to physically visit these directories.

To bridge the gap between theory and the actual test, we provide 1,000 expert-curated CompTIA A+ Core 2 (220-1102) practice questions at Cert Sensei. Our platform doesn't just tell you if you're wrong; we provide detailed expert reasoning for every answer so you understand the 'why' behind the FHS. Plus, our domain-level analytics will show you exactly if you're struggling with the Linux OS section, allowing you to pivot your study time where it's needed most.

❓ Frequently Asked Questions

Will I see questions about /boot or /dev on the A+ exam?

Yes, occasionally. /boot contains the files needed to start the OS (like the GRUB bootloader), and /dev contains device files that represent your hardware (like /dev/sda for your hard drive). While not as emphasized as /etc or /var, knowing them helps you understand the full system flow.


Why can't I edit files in /etc as a normal user?

Security. Because /etc contains global system configurations, allowing any user to edit them would be a massive security risk. You must use the 'sudo' command to gain administrative privileges before you can modify files in this directory.


Is the FHS the same for every Linux distribution?

While there are slight variations between 'families' (like Debian vs. Red Hat), the FHS is a standard designed to ensure consistency. The core directories like /etc, /bin, /var, and /home remain virtually identical across almost all professional Linux distributions.

More from CompTIA CompTIA A+ Certification Exam Core 2

🧠

Test Your Knowledge

Ready to practice CompTIA A+ Certification Exam Core 2? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
📖 Browse the Glossary

Join thousands of certification students

Sign Up Free