Sometimes, when you try to run a command as the root user using sudo, you receive a “command not found” error.
What Is “sudo” in Linux?
User accounts on Linux come with a limited set of privileges that prevent them from performing administrative tasks which may damage the system. These limited privileges keep users from accessing certain areas of the filesystem or from executing certain files.
The one user who has no such restrictions on their actions is the root user. The root user can access any area of a Linux system, and execute any command on any file.
Because of this immense power, you should disable the root account and use sudo instead.
The sudo command is short for “superuser do” and allows a user who is part of the sudo group to execute a command as if they were the root user. It effectively gives them root powers and permissions—as long as they use sudo and authenticate with a password.
[mai mult...]


