Skip to content
BENIBIX Learn

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.

Infrastructure⌨️ Linux & the Command Line

Root User

The boss account on Linux. It can change or delete any file.

The root user is the all-powerful account on a Linux system. It can read, change or delete any file, and run any command. Its user number is 0. Nothing stops root from making a mistake, even a deadly one. So you work as a normal user and borrow root only for one command at a time. Many servers stop root from logging in over the network.

Example
Emma's new server lets her log in as root. Her first job is to make a normal user and turn root login off.
Why it matters
Anyone who gets root owns the whole machine. Guarding it is the first job on any server.
Full entry
Infrastructure⌨️ Linux & the Command Line

Root Directory (/)

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

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.
Why it matters
Every path on a server starts here. Read a path from the left, from the root down.
Full entry

In one line

Root User
The boss account on Linux. It can change or delete any file.
Root Directory (/)
The top folder on Linux, written as /. All other folders sit in it.