Working as Root User in the TerminalThe following command is used to switch to the root user in a terminal:
su -
|
Nothing will appear on the screen while you type your password. This is intended. |
To stop working as root, enter the following command:
exit To run a single command as root you can use:
su -c "[command]" You can read more about using the terminal in the next chapter.