answersLogoWhite

0

The secondary prompt (PS2) is used to prompt the user with whatever string they want to indicate a command continuation line. For example, if I use the standard PS2 prompt and type in the command:

cat abc def \

The shell will prompt me for the rest of the line with a ? mark or some other character. I usually set my secondary prompt for something more interesting, such as:

PS2='more ? '

So that I know that the shell wants more information before executing the command line.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the administrator's prompt in the command line on unix?

The usual indication of running as the administrator in Unix is show a prompt that contains the '#' character as either the prompt or part of the prompt.


What is prompt in unix?

The prompt is an indication that the system is waiting for work to do, i.e. waiting for you type in a command.


How do you change commpand prompt form to in unix?

Use the shell variable PS1 to set the command prompt to whatever you need.


Can you compile job in Unix prompt?

Depends on what you mean by a "job". You can compile a program.


What is the prompt symbol traditionally associated with ordinary users in UNIX?

dollar sign ($)


How can you identify by seeing in the prompt whether the command is external or internal in unix?

You really can't. There is nothing in a prompt that would give that information.


How you change your prompt to always the current path in UNIX?

Use the following: PS1='$PWD : '


Where can you get a Unix shell for Windows?

A Unix shell can be obtained in Cygwin, a Unix compatibility layer used to compile Unix programs and run them on Windows. Microsoft also makes a shell known as "Windows PowerShell" which incorporates more Unix-like features than the standard command prompt.


What command should you type at the shell prompt or command prompt?

The command you should type at the shell prompt or command prompt depends on what you want to accomplish. For example, to display the current directory, you can use pwd in Unix/Linux or cd without arguments in Windows. To list files, type ls in Unix/Linux or dir in Windows. Always ensure you have the appropriate permissions for the commands you intend to execute.


What command is used to create a folder in the command prompt?

In Windows and Unix-based and Unix-like systems, the command is mkdir (however in Windows a shortcut md can be used as well).


Is xv6 command prompt?

xv6 is not a command prompt itself; rather, it is a simple Unix-like operating system used for educational purposes. It provides a command-line interface where users can execute commands similar to those in Unix. The command prompt in xv6 allows users to interact with the system, run programs, and manage files, but xv6 as a whole encompasses the entire operating system, not just the command prompt.


How do you log into Unix?

You can log in via telnet or ssh protocol for a command line prompt environment to Unix, or you can use a graphical user interface such as KDE or Gnome, or the CDE environment via X-windows. In any of these protocols, you must supply a username and password to successfully log into the Unix system.