What is root on Linux?

In most cases, the term “root” on Linux refers to the system administrator account. “root” is the username for this account (like “administrator” on Windows). The root user has access to everything on the system (files, services, commands, etc.).

Typically, when you install Linux on a computer or Raspberry Pi, the root user is created by default, but not always enabled. You’ll usually create and use another user account (for yourself) that has more limited privileges on the system.

become root on a raspberry pi

Security risks

Root has superuser privileges, which means it has the highest level of access to the system.

This is convenient for system administrators, but can also be harmful, as the slightest wrong command or parameter can break everything. Using the root session directly is also risky in terms of malicious software, as installing it can break the entire system in a flash.

Download Your Essential Linux Commands Guide!
It's a free PDF guide containing every Raspberry Pi Linux command you should know!
Download now

For this reason, it’s not recommended to use the root user account directly. Instead, stay with your user account for day-to-day tasks, and only temporarily switch to the root session when necessary.

Join Our Community!

Connect, learn, and grow with other Raspberry Pi enthusiasts. Support RaspberryTips and enjoy an ad-free reading experience. Get exclusive monthly video tutorials and many other benefits.

Learn more

When connecting to a Linux server or Raspberry Pi via SSH, the root account is often forbidden and it’s not recommended to enable it (always connect as a normal user first).

Read more about security here: 17 Security Tips From A Pro To Protect Your Linux Server.

Download Your Essential Linux Commands Guide!
It's a free PDF guide containing every Raspberry Pi Linux command you should know!
Download now

Sudo command

In most cases, you don’t even have to use the root session, as all the main distributions are now using “sudo” instead.

Sudo is a command that is prefixed to another command and allows you to temporarily gain root privileges just to run that specific command. This is a safe way to perform tasks that require more privileges than your current user account has.

You can easily configure which users can or can’t use sudo, whether a password is required or not, etc. See the linked articles below for more details.

Root directory

Just a quick word about another use of the term “root” that you may find in some tutorials.

The term “root” also refers to the top-level directory of the Linux file system (“/”).

Download Your Essential Linux Commands Guide!
It's a free PDF guide containing every Raspberry Pi Linux command you should know!
Download now

Related articles

Download Your Essential Linux Commands Guide!
It's a free PDF guide containing every Raspberry Pi Linux command you should know!
Download now

🛠 This tutorial doesn't work anymore? Report the issue here, so that I can update it!

Want to chat with other Raspberry Pi enthusiasts? Join the community, share your current projects and ask for help directly in the forums.

Additional Resources

Overwhelmed with Linux commands?
My e-book, “Master Linux Commands”, is your essential guide to mastering the terminal. Get practical tips, real-world examples, and a bonus cheat sheet to keep by your side.
Grab your copy now.

VIP Community
If you just want to hang out with me and other Linux fans, you can also join the community. I share exclusive tutorials and behind-the-scenes content there. Premium members can also visit the website without ads.
More details here.

Need help building something with Python?
Python is a great language to get started with programming on any Linux computer.
Learn the essentials, step-by-step, without losing time understanding useless concepts.
Get the e-book now.