sudo and root

Runs one command as the administrator (root), after asking for your password.

Also called: root, superuser, administrator

Source
General
Language
Bash

In plain English

Root may do anything, including breaking the system, so use sudo only for the command that needs it. Shared hosting doesn't give you sudo; a VPS does.

Example

Installing packages needs sudo, because only root may change the system.

In code

sudo apt update && sudo apt upgrade

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30