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.
1. Username in prompt
Result: “user1 >”