Beginner Topic 2 of 50 DevOps & Tooling
Linux File System Layout
Standard directories and their purposes.
How it works
Linux presents one tree rooted at /, and the Filesystem Hierarchy Standard gives each directory a purpose. /etc holds system configuration, /home holds user files, /var holds changing data such as logs and caches, /usr holds installed programs and libraries, /bin and /sbin hold essential commands, /tmp holds temporary files, /dev exposes devices as files, and /proc and /sys expose live kernel and process information. Other disks and network shares are mounted onto directories rather than getting drive letters.
Where it is used
Knowing the layout tells you where to find logs in /var/log, edit configuration in /etc, place application data and check disk usage by mount point.
Common pitfall
Mixing user data into system directories makes upgrades and backups hard, and filling /var or /tmp can crash a server. Keep application data on its own path or volume and monitor disk space on every mount.
Where it fits in the course
Linux File System Layout is topic 2 of 50 in DevOps & Tooling, rated Beginner. It follows Command Line Basics. The next topic is File Permissions.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the DevOps & Tooling quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the DevOps & Tooling quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Linux File System Layout?
Where do people use Linux File System Layout?
What is the most common mistake with Linux File System Layout?
What should I learn before this topic?
How can I practice it?
Is Linux File System Layout hard to learn?
How long does it take to learn Linux File System Layout?
Which topics are related to Linux File System Layout?
What should I study after Linux File System Layout?
Related topics
- Command Line Basics (DevOps & Tooling)
- File Permissions (DevOps & Tooling)
- Text Editors and IDEs (DevOps & Tooling)
- Package Managers (DevOps & Tooling)
- Binary Number System (Computer Architecture & Logic)
- What is an Operating System (Operating Systems)
- What is a Distributed System (Distributed Systems & Cloud)