header image
Home arrow Linux Bits and Bobs arrow How to Set the Linux Prompt
How to Set the Linux Prompt PDF Print

Enviornmnet variable PS1 is the prompt.

 To view the current setting use echo:

bash-3.1$ echo $PS1
\s-\v\$

To change the current setting use export:

bash-3.1$ export PS1="Don"
Don

 /bowenvale.co.nz/subdomains/wwwexport PS1="\w#"

\u - user

\h - name of host

\w - name of present working folder

.bashrc - to set your default

cut - to