Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
3 answers
5k views

How to change the PS1 value.

I am logged in as the root of a Linux 2.6.18 machine. I changed the value of PS1 as: export PS1="$PWD> " It works and hardcodes the command prompt as the home directory followed by a >. Now I ...
VSN's user avatar
  • 35
2 votes
1 answer
880 views

What prompt is sh using when you type sh into Terminal?

When using the default PS1 prompt that MAC OS/Terminal comes with, when you type sh you get a new style prompt. station-4:~ user$ sh sh-3.2$ When you export your own PS1, this functionality goes ...
Igorio's user avatar
  • 748