Special prompt for root
This entry should be a part from a longer article about Linux bash shell or a tip in a tip/trick list. But I allways forget how I set root prompt’s on my machines so better I writte down here and it’s easier for me to find:
export $PS1="[\[\033[41;1;37m\]\u\[\033[0m\]@\h \W]$"
and you’ll get something similar to this:
[
root
@porta root]$
… which is very usefull to pay attention when you’re root.