Created
January 21, 2011 20:54
-
-
Save owengriffin/790403 to your computer and use it in GitHub Desktop.
Ubuntu "sudo" man
This file contains 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
The -i (simulate initial login) option runs the shell | |
specified in the passwd(5) entry of the target user as a | |
login shell. This means that login-specific resource files | |
such as .profile or .login will be read by the shell. If a | |
command is specified, it is passed to the shell for | |
execution. Otherwise, an interactive shell is executed. | |
sudo attempts to change to that user's home directory | |
before running the shell. It also initializes the | |
environment, leaving DISPLAY and TERM unchanged, setting | |
HOME, SHELL, USER, LOGNAME, and PATH, as well as the | |
contents of /etc/environment on Linux and AIX systems. All | |
other environment variables are removed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment