PS1 Environment Variable (Bash Prompt)





1. What is PS1?


PS1 stands for Prompt String 1.

It defines how your primary shell prompt looks — the text you see before you type a command.

Example of a prompt:



aisalkyn@macbook:~/Desktop$






Everything before $ is controlled by PS1.







2. Simple PS1 Change (Basic...