The bash-shell has an expansion of "\$" which gives you a hash for uid=0, else a $. See man bash, grep PROMPTING.
But that´s not the console, it´s the shell ;-)
Jeffrey Morse wrote:
Put this in your .bashrc:
This changes the bash shell prompt # set prompt: ``username@hostname:/directory $ '' PS1="[\u@\h:\w] " case `id -u` in 0) PS1="${PS1}# ";; *) PS1="${PS1}$ ";;
- : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html