Red Hat question: prompt display full path?

TJN23

Golden Member
May 4, 2002
1,670
0
0
I'm running redhat and my command prompt looks like this when i navigate to /usr/bin:

[root@myhostname /bin]#

How do I get it to look like this:

[root@myhostname /usr/bin]#
 

yinan

Golden Member
Jan 12, 2007
1,801
2
71
I dont know to make that prompt exactly but to make it look like the dos path you can make it look similar.
My prompt is /root/home:>

You get this by adding the following line to the end of your /etc/bashrc file I believe.
PS='$PWD:> ';export PS1