How many prompts are available in a UNIX system?
-
10
-
6
-
8
-
2
Unix systems typically have 2 primary prompts for the shell: the primary prompt (often denoted by $PS1, like $ or # for root) and the secondary prompt (denoted by $PS2, usually >).
To answer this question, you need to understand the different prompts available in a UNIX system.
Option A) 10 - This option is incorrect because there are not 10 prompts available in a UNIX system.
Option B) 6 - This option is incorrect because there are not 6 prompts available in a UNIX system.
Option C) 8 - This option is incorrect because there are not 8 prompts available in a UNIX system.
Option D) 2 - This option is correct because there are typically two prompts available in a UNIX system: the primary prompt (PS1) and the secondary prompt (PS2). The primary prompt is the default prompt that appears when the system is ready for a new command, while the secondary prompt is used when a command is incomplete or spans multiple lines.
The correct answer is D) 2. This option is correct because there are typically two prompts available in a UNIX system: the primary prompt (PS1) and the secondary prompt (PS2).