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


Click here to return to the 'Change the appearance for the root account' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change the appearance for the root account
Authored by: hombre on May 22, '05 12:48:08AM

This is very helpful. I have always wished I could make the Terminal background a different color when I su to root, but I don't think that is possible, and the red text is hard to miss. It feels weird to me to have a '$' instead of '#' in the prompt, though.



[ Reply to This | # ]
Change the appearance for the root account
Authored by: devlogic on May 23, '05 04:16:37AM

That's easy enough to fix, though; just change the "$" to "\$" (only works in bash, not tcsh); the shell will automagically change the '$' to '#' for the root shell. Or, since the outlined procedure explicitly creates/changes the root .bashrc (and not your personal .bashrc), just use a '#' instead of a '$' in the PS1 variable declaration to begin with.



[ Reply to This | # ]