a problem with command prompt

General support questions
Post Reply
chuanjiesun
Posts: 1
Joined: 2011/09/12 01:42:54

a problem with command prompt

Post by chuanjiesun » 2011/09/12 01:53:51

Recently,I have came with a problem with command prompt.
The format of command prompt has become";username@localhost:absolute path [username@localhost:releative path]$",screenshots below
[img align=right]C:\Users\SCJ\Desktop\9.png[/img]
what caused the problem? The result of command "echo $PS1" is [\[\e[31m\]\u@\[\e[36m\]\h \W\[\e[37m\]]\[\e[33m\]\$\[\e[m\]
is there anyone can help me?

r_hartman
Posts: 711
Joined: 2009/03/23 15:08:11
Location: Netherlands
Contact:

a problem with command prompt

Post by r_hartman » 2011/09/12 08:17:35

Welcome to the CentOS fora.

Check the contents of ~/.bash_profile and ~/.bashrc and see if these modify PS1.

Post Reply