linux - Why does my root user have a different shell prompt to other users with the same shell? -
the root user on centos 6 distro has different shell prompt other users create.
if
echo $ps1
for root user, [\u@\h \w]\$
if same user, \s-\v\$
if run
which bash
i can see both users using same shell (/bin/bash/).
is $ps1 variable being set differently individual users or groups somehow?
yes, set different (for users). ps1 variable read .bashrc of home directory or /etc/profile or /etc/bash.bashrc.
Comments
Post a Comment