Command Prompt Article Index for
Command
Website Links For
Command
 

Information About

Command Prompt




.]]
A command prompt (or just '''prompt''') is a character or a sequence of characters used in a .

It is common to allow prompts to be modifiable by the user. In the proper environment, they may include colors, special characters, and other things like the current time, in order, for instance, to make the prompt more informative or visually pleasing, or to easily distinguish sessions on to different machines.

In MS-DOS and in the Windows Command Line Interpreter the prompt is modifiable by issuing a prompt command or by changing the value of the %PROMPT% Environment Variable . The default C:\> style is obtained, for instance, with "prompt ".

On Unix systems, the variable can be used, although other variables also may have an impact on what appears on the screen (depending on what Shell is being used). In the Bash shell, a prompt of the form
: {Link without Title} user@host: work_dir $
could be set by issuing the command
:export PS1='[ ] \u@\H: $(pwd) $'