How many prompts are available in a UNIX system?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is shell and terminal?

740


What is the difference between break and continue commands?

784


What is scripting used for?

758


what is info area how many types?

2495


Suppose you execute a command using exec, what will be the status of your current process in the shell?

809


How to get the first line from a file using just the terminal?

818


How do I read a .sh file?

750


Is bash an operating system?

731


Is shell scripting a language?

765


I want to connect to a remote server and execute some commands, how can I achieve this?

787


c program to display the information of given file similar to givan by the unix or linux command ls -l

1930


Please give me example of " at command , contrab command " how to use

2529


What is shell geeksforgeeks?

763


How to set an array in linux?

792


What is the use of echo in shell script?

769