---

Bash Shell: Take Control of PS1, PS2, PS3, PS4 and PROMPT_COMMAND

“Following PS1 codes are used in this example:

“* u – Username
* h – Hostname
* w – Full pathname of current directory. Please note that when you
are in the home directory, this will display only ~ as shown
above.”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis