Wednesday, May 11, 2011

How to reset the Unix Prompt to default? ( PS1)


How do I get my prompt to show the current directory, like on DOS?

PS1 – stands for Prompt String 1

In korn shells

PS1='$PWD$ '


in Bourne shells

PS1="`pwd` "

No comments: