Just as a reminder for future usage:
sudo -s opens a shell with the privileges of the target user, usually root.
sudo -s
whoami # rootYou 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

Leave a Reply