Picture an upside-down tree. It has one starting point at the top. Large branches lead to smaller branches, and those lead to files. Linux calls the single starting point the root directory and writes it as one forward slash: /.
The root directory is not the same as the root user. One is the top folder; the other is a powerful administrator account.
Several first-level branches have common jobs. /home contains ordinary users’ personal folders. /etc contains system configuration. /var contains changing data such as logs. /tmp is for temporary files.
Unlike Windows, Linux does not normally organize everything under drive letters such as C:. Other disks and devices are connected somewhere within the same tree.
Tiny Practice
Place this file in the tree: /home/maya/notes.txt. What is the root, what is the home directory, and what is the filename?
Hint
- The first slash represents the root.
- The user is maya.
- The part after the final slash is the file.
Show Solution
Solution: Root is /. Maya’s home directory is /home/maya. The filename is notes.txt.