For starters, the PS1
variables are a "shell" thing, not necessarily a Linux thing.
Depending on the shell you're using, you may have all four (like with bash
), on only two (like the regular bourne shell "sh
To set one of them in most shells, just type the following;
$ export PS2=" > "
From the bash 3.2.25 man page;
PS1 The value of this parameter is expanded (see PROMPTING below) and used as the primary prompt string. The default value is "\s-\v\$".
PS2 The value of this parameter is expanded as with PS1 and used as the secondary prompt string. The default is "> ".
PS3 The value of this parameter is used as the prompt for the select command (see SHELL GRAMMAR above).
PS4 The value of this parameter is expanded as with PS1 and the value is printed before each command bash displays during an execution trace. The first character of PS4 is replicated multiple times, as necessary, to indicate multiple levels of indirection. The default is "+ ".
If you find this helpful, click the "thumbs-up" on this post.
Also, if this post answers your question, feel free to mark this thread as "Solved".
Have a good one!