M
MustangV10
Guest
Can anyone explain to me about Linux SSH prompts? Such as, root@server [~]# - I believe that's what someone called them once..Something to do with ps1/ps2 prompts as well.
Thanks.
Thanks.
if [ $UID -eq 0 ]; then
PS1='\[\033[0;31m\]\u\[\033[0;33m\]@\h\[\033[0;36m\]:\W\$\[\033[0m\] '
else
PS1='\[\033[0;33m\]\u@\h\[\033[0;36m\]:\W\$\[\033[0m\] '
fi