A question about shell (bash shell)
I log in to a linux and the shell looks as follow:
Code:
[root@s003ap02-test ~]# Code:
-bash-3.00$ Code:
[myuser@s003ap02-test ~]# |
# prompt is for root. $ is for normal user.
To get the # the prompt you need to be root. |
You can set whatever prompt you want
check enviroment variable PS1 By default prompt set by /etc/bashrc script. Just check file /etc/bashrc, i think you will get your answer thnks |
export PS1="[myuser@\h \W]"
display [myuser@localhost ~] if u want permanently above the name u will store .bashrc file. |
Here is mine colorized in blue:
Code:
export PS1="\[\033[0;34m\][\u@linux \W]$\[\033[0m\] " Code:
[alex@linux ~]$ |
All times are GMT -5. The time now is 05:59 AM. |