# Root Directory (/)

> The top folder on Linux, written as /. All other folders sit in it.

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** Root Folder, Filesystem Root, Slash Directory

## Think of it like

Think of it like the trunk of a tree. Every branch and leaf grows out from it.

## Definition

The root directory is the top folder of a Linux system. It is written as one slash, /. Every other folder sits inside it, even other disks. So /home, /etc and /var all hang off the root. There is no drive letter like C: on Linux. Do not mix it up with the root user, who is a person, not a folder.

## Example

Lucy types cd / and then ls. She sees the main folders, like home, etc and var, all inside the root.

## Example code

```console
$ cd /
$ pwd
/
```

Go to the very top, then ask where you are. The answer is one slash.

## Why it matters

Every path on a server starts here. Read a path from the left, from the root down.

## Common mistake

Running a delete command on / by mistake. One wrong slash can wipe the whole system.

## Three principles

- **One slash.** The root is written /.
- **Top of the tree.** Every folder sits below it.
- **No drive letters.** Other disks join the same tree.

## Related terms

- [Home Directory (~)](https://learn.benibix.com/term/infrastructure/home-directory)
- [cd](https://learn.benibix.com/term/infrastructure/cd-command)
- [Directory](https://learn.benibix.com/term/development/directory)
- [File Path](https://learn.benibix.com/term/development/file-path)
- [Root User](https://learn.benibix.com/term/infrastructure/root-user)

## Told apart from

- [Root User vs Root Directory](https://learn.benibix.com/compare/root-user-vs-root-directory): People hear root and think of one thing. On Linux it names two. The root user is the account that may do anything. The root directory is the top folder, written /. The root user even has its own home folder, /root, which sits inside the root directory.

## Taught in

- [File Paths and Folders](https://learn.benibix.com/learn/development-platforms/file-paths-and-folders): OS and Files, 9/10
- [The Linux File Tree](https://learn.benibix.com/learn/infrastructure-linux/linux-file-tree): Linux CLI, 4/10

![A folder tree with a single slash at the top, the root. Below it hang etc, home, root and var. Under home sits emma, marked with a tilde as her home folder and with a you-are-here marker. Inside emma are notes.txt, photos and two faded hidden items, .bashrc and .ssh. Under var sits log. An arrow shows a cd move from emma down to var/log.](https://learn.benibix.com/diagrams/inf3-file-tree.svg)

---

Source: https://learn.benibix.com/term/infrastructure/root-directory
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
