A file directory structure is the way an operating system organises folders (directories) and files on a storage device. Almost all modern systems use a hierarchical, or tree, structure. It begins with a single top-level directory called the root, and each directory can contain files and further subdirectories, creating branches like an upside-down tree.
Key terms
- Root directory
- the top-level directory
- Parent directory
- the folder one level up
- Subdirectory
- a folder inside another
- Absolute path
- full path from the root
- Relative path
- path from the current directory
- Hierarchical (tree) structure
- directories nested in levels
- Mount
- attach a drive into a directory tree (Linux)
Summary
- Directories form a tree starting at the root.
- Absolute paths start from the root; relative paths start from the current folder.
- Windows uses drive letters and \; Linux uses one root and /.
In everyday life: A regional health bureau organises patient data folders by zone, then woreda, then health centre, forming a directory tree that mirrors Ethiopia's administrative structure.
Check yourself
- What is the root directory?
- What does .. mean in a path?
- Give one advantage of a tree structure over a single-level directory.
Practice questions
1. In a hierarchical directory structure, the top-level folder that contains everything else is the:
- A. Leaf
- B. Root directory
- C. Subfolder
- D. Shortcut
Show answer
Answer: Root directory
All folders branch out from the root (for example C:\ in Windows or / in Linux), like branches from a tree's base.
On WeLearn
The full lesson: reading notes, worked examples, class activities and the Unit 1 quiz
Study File Directory Structure on WeLearnTeach File Directory Structure with WeLearn
We will bring a demo to your school: a lesson on your interactive TV, a virtual lab and a classroom game, with your own teachers.
