Root User#
On Linux the "superuser" is, generally speaking, root
.
The superuser can do anything on the system. That means they can install software, add users, mount and format physical disk drives, and absolutely destroy everything.
The superuser is a powerful user and in reality you very rarely use the superuser directly. Instead, you'll configure a standard user and use a utility called sudo
, which means switch user, do
: you switch another user and then do something (run a command) and then come back to your own user account.
When you're operating a remote Linux system has a non-root user, your command prompt has this character just before your commands: $
. If you're the root
user, then your command prompt will be #
.
Let's talk about su
and sudo
.