sudo -s = Root Shell

By

in

Just as a reminder for future usage:

sudo -s opens a shell with the privileges of the target user, usually root.

sudo -s
whoami   # root

You can then run commands without typing sudo every time.

Be careful: commands in this shell run with elevated privileges.

Use exit to leave the root shell.

Photo by Jake Walker on Unsplash



Comments

Leave a Reply

Your email address will not be published. Required fields are marked *