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

c program to check whether all the directories in the path exists has read and write permission

1 Answers  


What is computer cli?

0 Answers  


How to print all the arguments provided to the script?

0 Answers  


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

0 Answers  


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

0 Answers   TCS,


Calculate a real number calculation directly from the terminal and not any shell script.

0 Answers  


How do we create command aliases in a shell?

0 Answers  


write a non recursive shell script that accepts any number of arguments and prints them in the reverse order

3 Answers  


In a file , how to retrieve the lines which are the multiples of 50 ? like 50,100,150th lines etc.

9 Answers   Amazon,


What is echo $shell?

0 Answers  


Why are shell scripts used?

0 Answers  


how to read systems current date and time

4 Answers  


Categories