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