LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   root@localhost ~]# is not showing on my centos 6.4 terminal.!!!!! (https://www.linuxquestions.org/questions/linux-general-1/root%40localhost-%7E%5D-is-not-showing-on-my-centos-6-4-terminal-4175484423/)

Aneesh.T .S 11-13-2013 06:35 AM

root@localhost ~]# is not showing on my centos 6.4 terminal.!!!!!
 
1 Attachment(s)
Dear friends,

I am facing one issue on my Centos6.4 linux machin.

When ever I am opening my terminal it not showing
root@localhost ~]# it showing bash-4.1 only "bash-4.1#"

How can I retrieve this issue on my centos Machine.

Kindly find the attached image.Then you can clearly understand what issues am facing.



with regards
Aneesh T S

suicidaleggroll 11-13-2013 08:39 AM

So?

Just edit PS1 if you want it to look different.
Code:

user@comp:~> echo $PS1
$(ppwd \l)\u@\h:\w>
user@comp:~> su -
Password:
comp:~ # echo $PS1
\[\]\h:\w # \[\]
comp:~ # export PS1="\u@\h:\w> "
root@comp:~> export PS1="\u@\h \w]# "
root@comp ~]# export PS1="\u is a little tea cup # "
root is a little tea cup #

And so on. Add the command to ~/.bashrc to make the change permanent.

kooru 11-14-2013 01:26 AM

Just to add a guide if it can be useful:

http://www.cyberciti.biz/tips/howto-...up-prompt.html
http://www.thegeekstuff.com/2008/09/...ngelina-jolie/

Aneesh.T .S 11-15-2013 12:51 AM

It is working 100%....
 
Hi suicidaleggroll,

it is very helpfull and it is working fine.

now everything is working fine.

thank you very much and thanks for your valuable time for helping me.


All times are GMT -5. The time now is 02:50 PM.