Multiple choice technology operating systems

How many prompts are available in a UNIX system and what it is ?

  1. 3,PS1,PS2,PS3

  2. 4,PS1, PS2, PS3, PS4

  3. 2,PS1, PS2

  4. 1,PS1

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

Unix shells have four standard prompt variables: PS1 (primary prompt, typically '$' or '#'), PS2 (secondary continuation prompt, typically '>'), PS3 (select prompt for menu selection), and PS4 (debug prompt used with shell tracing). These control the command-line appearance in different contexts. PS1 is the main prompt users see, while PS2 appears for multi-line commands, PS3 for select loops, and PS4 during debugging.