Multiple choice technology operating systems

Which environment variable can be used to change the shell prompt?

  1. TERM

  2. PROMPT

  3. PS1

  4. PS2

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

PS1 is the primary prompt string variable in bash/shell. TERM controls terminal type, PROMPT is not a standard variable, and PS2 is the secondary prompt (for multi-line commands).