LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   PS1 variable (https://www.linuxquestions.org/questions/linux-general-1/ps1-variable-850400/)

Kenny_Strawn 12-15-2010 08:51 AM

PS1 variable
 
Just what is the PS1 shell variable and what does it do? I know when I modify it the command prompt changes, but I'm not sure.

repo 12-15-2010 08:53 AM

PS1 stands for "prompt string 1" and defines the primary prompt string.

Kind regards

H_TeXMeX_H 12-15-2010 08:59 AM

If you don't know what a prompt string is, it is usually a $ or bash-4.1$, see:
http://www.grymoire.com/Unix/Sh.html#uh-22

Kenny_Strawn 12-15-2010 09:34 AM

Okay, thank you. How come the variable doesn't end up in the env or export listings then?

H_TeXMeX_H 12-15-2010 09:38 AM

It is in 'set', which shows more than those.


All times are GMT -5. The time now is 01:02 PM.