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

What is shell geeksforgeeks?

0 Answers  


Explore about environment variables?

0 Answers  


What are filters explain sort with all the options available?

0 Answers  


how to create purchase order

2 Answers  


What does $0 mean in shell script?

0 Answers  






Explain about stdin, stdout and stderr?

0 Answers  


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

0 Answers  


Which scripting language is best for automation?

0 Answers  


How to get the 3rd element/column from each line from a file?

0 Answers  


What are different types of shell?

0 Answers  


What is echo $shell?

0 Answers  


What are the advantages of bash over all other shells?

1 Answers  


Categories