The Linux Directory Tree: /, /home, /etc and /usr
What you need to know
Linux organizes paths in one tree starting at /. Unlike drive-letter paths, other filesystems can appear at directories within this tree. Knowing the conventional purpose of each directory helps you locate files without guessing. The Filesystem Hierarchy Standard (FHS) describes conventions; a distribution may adapt them.
How the layout works
/ is the root of your current filesystem view. /home commonly contains ordinary users’ home directories, but a home directory can be elsewhere. /root conventionally belongs to the administrator account and is not the top of the tree. /etc contains machine-specific configuration, while /usr contains installed programs, libraries and shared resources. /usr/bin commonly holds commands and /usr/share holds architecture-independent resources such as documentation. /usr/local is conventionally reserved for locally installed software, separate from distribution-managed files.
Think of a notes application: your own notes belong in your home, a machine-wide setting might live in /etc, and the installed executable might live in /usr/bin. The actual application determines the exact paths.
Before practicing
Use a normal user in your disposable Linux lab with Bash, GNU Coreutils and util-linux. These examples inspect specific paths only; no sudo is needed. If a directory, command or permission is missing, record the difference and stop rather than changing the system. Ubuntu 24.04 LTS is the teaching baseline; the recorded local outputs are from Debian 13.3 in a container.
Inspect directory names
On a typical installation each existing path is printed on its own line. -d lists the directory entry itself, not its contents. A missing path produces an error; do not create it just to match this example.
Seeing /root in the listing does not mean you can enter it or read files inside. A directory can be visible by name while its permissions restrict access. Use the conventional roles to decide where to look, then inspect the actual system without modifying it.
Locate the installed ls program
Usually prints /usr/bin/ls on Debian or Ubuntu in a clean Bash session; other paths or shell definitions are possible. This is how you discover a command rather than assuming its location.
Inspect the system identity file
The output contains distribution identification fields, which differ by system. Look for ID or PRETTY_NAME; this file is not a list of all installed software.
Common mistakes
Do not confuse /root with /, or assume every user lives below /home. Do not edit /etc or package-managed files as an exercise. Directory names are conventions, not access permissions; permission checks come later.
Try it yourself
Classify a personal document, a machine-wide configuration, an installed command and a shared manual by their likely locations. Explain why /root is different from /.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
The Linux directory tree — Knowledge Check
Apply Linux filesystem layout concepts and interpret safe inspection results.
What does `/` identify?
Where is machine-wide configuration conventionally kept?
What does `ls -d /etc` display?
Where would a distribution-installed executable commonly be located?
A user’s home is not under /home. What should you conclude?