HOWTO: Change the Unix prompt and windows title.
The default user prompt on Unix is “$” and the root prompt is “#”. In this article you will find how you can change the prompt to display a lot of useful information. The same or other information can also be displayed in the windows title. The prompt is set by changing the PS1 environment setting.
Some examples:
1. Username in prompt
PS1=”$USER >”
Result: “user1 >”