Created
December 6, 2020 20:34
-
-
Save gbarreiro/e8a0bbd268e49932a5af248ac5e2a09d to your computer and use it in GitHub Desktop.
Bash cheatsheet: change users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su # change current user to root | |
su - # change current user and local variables to root | |
su maria # change current user to "maria" | |
sudo nano # runs command "nano" as root user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment