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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -