Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PS1=$ how to get old form

Status
Not open for further replies.

tekbond007

Programmer
Aug 7, 2001
16
IN
Dear friends,
I am working linex platform. In order to change the command prompt I used

initily my command prompt appears like this

[scovijay@localhost scovijay ]


from this prompt i typed

PS1=$
Now command prompt appears with $ prmpt


Now my question is how to get my old prompt back



Thank u for ur response

vijay
 
If you made the change in your home directory .bash_profile or .bashrc file just comment it out and the PS1 will be read from /etc/bashrc file which issues PS1 globally with the default prompt. If you changed the /etc/bashrc then you'll have to change it back. It should look something like this:
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
d3funct
zimmer.jon@cfwy.com
The software required `Windows 95 or better', so I installed Linux.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top