How many prompts are available in a UNIX system?

Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt).

Showing Answers 1 - 3 of 3 Answers

Vijay Valli Prasanna Roy

  • Apr 19th, 2006

Unix/ Linux Supports four Prompts PS1, PS2, PS3, PS4

  Was this answer useful?  Yes


  • Nov 12th, 2006

PS1 Prompt used as the normal system promptPS2 Prompt used when the shell expects more inputPS3 Prompt used when you have root authority

  Was this answer useful?  Yes

Linux User

  • Oct 29th, 2007

Bash supports 4 prompts:

PS1 - the default prompt
PS2 - for multi-line input
PS3 - printed for the select command
PS4 - printed before output if set -x is set

(see http:// www . gnu . org/software/bash/manual/bashref . html )
The first two are common to the Bourne shell (and ksh).  The last two are only for Bash.

csh, however, uses a completely different system.  Set the "prompt" variable.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account

Send   Reset


Related Answered Questions


Related Open Questions