Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the '10.5: Fix the sudo shell prompt' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Fix the sudo shell prompt
Authored by: epyon9283 on Wed, Mar 19 2008 at 9:06AM PDT
"sudo -i" will do the same thing

[ Reply to This | # ]
10.5: Fix the sudo shell prompt
Authored by: allanmarcus on Wed, Mar 19 2008 at 9:18AM PDT
excellent tip! I always used -s, but -i seems to be "better"!

[ Reply to This | # ]
Not the same
Authored by: lincd0 on Wed, Mar 19 2008 at 10:01AM PDT
sudo -i is not the same as sudo -s. The first simulates a root login. You get the root home directory and PATH, and lose your own environment. The second preserves most of your customized shell environment, while changing your effective UID to root. Much better for my purposes.

[ Reply to This | # ]