Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Fix the sudo shell prompt' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Fix the sudo shell prompt
Authored by: epyon9283 on Mar 19, '08 09:06:36AM

"sudo -i" will do the same thing



[ Reply to This | # ]
10.5: Fix the sudo shell prompt
Authored by: allanmarcus on Mar 19, '08 09:18:01AM

excellent tip! I always used -s, but -i seems to be "better"!



[ Reply to This | # ]
Not the same
Authored by: lincd0 on Mar 19, '08 10:01:11AM

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 | # ]