Overview
The root directory, written /, is the top of the entire Linux filesystem — every file and directory descends from it. This lesson focuses on / itself: what it is, what lives directly beneath it, and why it must be treated with care.
Learning objectives
- Define the root directory and its role.
- Distinguish root directory
/from the root user and/root. - Recognize the standard top-level directories.
Core concept
/ is the single starting point of the Linux directory tree. Every absolute path begins at /, and all other directories are branches beneath it. Three similarly named things must not be confused:
/— the root directory (top of the filesystem).- root — the superuser (administrator account).
/root— the home directory of the root user (a specific folder, not the top of the tree).
Directly under / sit standardized directories defined by the Filesystem Hierarchy Standard (FHS): /bin, /etc, /home, /var, /usr, /tmp, /dev, /proc, and others.
How it works
Because everything hangs off /, it is the reference point for absolute paths (e.g. /etc/hosts starts at root). The FHS gives each top-level directory a defined purpose, so systems are predictable: you know configuration is in /etc, logs in /var, and so on regardless of distribution. Operating at or near / — especially as the root user — is powerful and risky, since changes here affect the whole system.
Practical example
Running ls / reveals the top-level layout:
$ ls /
bin boot dev etc home lib proc root tmp usr var
Each entry is a standardized branch. Note root here is /root (the superuser's home), distinct from / itself. An absolute path like /home/user/notes.txt is read as a journey from the root directory down through home, then user, to the file.
Cybersecurity relevance
The root directory is the anchor for navigating and enumerating any Linux system. Distinguishing /, the root user, and /root avoids dangerous confusion — commands run as the root user from or upon / can affect everything. A notorious hazard is a recursive delete at / (e.g. rm -rf /), which can destroy the system; understanding what / represents is the first defense against such mistakes.
Common mistakes
- Confusing
/(root directory), root (superuser), and/root(its home) — three different things. - Running destructive commands at
/, risking system-wide damage. - Forgetting absolute paths start at
/, leading to path errors.
Key takeaways
/is the root directory — the single top of the Linux filesystem from which all paths descend.- Do not confuse
/(top of tree), root (the superuser), and/root(the root user's home directory). - Standard top-level directories (per the FHS) make layouts predictable; operating at
/, especially as root, is powerful and demands care.
Check your understanding
- What is the difference between
/, the root user, and/root? - Why does every absolute path in Linux begin with
/?

