

Use it before installing new packages to make sure you are installing the latest version.

apt-get update: Synchronizes the list of packages on your system to the list in the repositories.To see a list of all the other available options for a command, enter the command, followed by -help.īONUS: Download a PDF version of this list so you can keep it handy and refer back to it whenever you want. Most of the commands below have a lot of other useful options that I don’t mention. After entering sudo su, you’ll see the command prompt, and all subsequent commands will have super user privileges. You can access root mode by entering sudo su at the command prompt. You’ll frequently see the prefix sudo before commands, which means you’re telling the computer to run the command with super user privileges.Īn alternative to entering sudo before each command is to access the root command prompt, which runs every command with super user privileges.

Some tasks can’t be performed with basic privileges, so you’ll need to enter them with super user privileges to perform them. One is a user mode with basic access privileges, and the other is a mode with administrator access privileges (AKA super user, or root). There are two user “modes” you can work with in Linux.
