11
Mar

The Terminal Prompt Environment Variable $PS1 and Others

A quick and dirty way to change your terminal prompt is to edit the ~/.profile or ~/.bash_profile files to include the line:

PS1="specify_prompt_here"

One example prompt would be to simply print the hostname followed by a colon:

PS1="h : "

Vivek Gite of cyberciti.biz has a really good write-up of utilizing the PS1 environment variable as well as others which can be found here:
http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html

Feel free to donate if this post prevented any headaches! Another way to show your appreciation is to take a gander at these relative ads that you may be interested in:


There's 0 Comment So Far

Share your thoughts, leave a comment!