How many prompts are available in a UNIX system?



How many prompts are available in a UNIX system? ..

Answer / oliver

2. the environment variables PS1 and PS2 refer to the
standard and alternative prompt.
The alternative prompt, it the prompt showed on subsequent
lines.


Small example below:

export PS1='>'
>export PS2='_>'
>
>
>echo \
_>hello
hello
>

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Shell Script Interview Questions

write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

0 Answers   Wells Fargo,


How to print pid of the current shell?

0 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  


what is this line in the shell script do ?#!/bin/ksh

5 Answers  


What is sudo command?

0 Answers  






How do I open the shell in cmd?

0 Answers  


Explain about login shell?

0 Answers  


Explain about shebang?

0 Answers  


What is the difference between bash and shell?

0 Answers  


Can we run shell script in windows?

0 Answers  


write a shell script to check the failed jobs?

0 Answers   Wells Fargo,


What is the use of "test" command?

2 Answers  


Categories