Home : Software Terms : Command Prompt Definition

Command Prompt

A command prompt is used in a text-based or "command-line" interface, such as a Unix terminal or a DOS shell. It is a symbol or series of characters at the beginning of a line that indicates the system is ready to receive input. It other words, it prompts the user for a command (hence the name).

The command prompt is often preceded by the current directory of the system the user is working with. For example, the default prompt in DOS may be C:\, which indicates the user is working at the root level of the main C: drive. In Unix, the prompt may be ~ user$, where "user" is the name of the current user. The tilde (~) indicates the current directory is the user's home folder.

A user can type commands at the command prompt, such as cd /, which means "change directory to the root folder." The "cd" command allows the user to browse through different directories of files on a hard disk or network. There are dozens of other commands that a user can type, which can be used to list, move, delete, and copy files, run programs, or perform other operations. While the "cd" command is the same in both DOS and Unix, many other commands have different syntax.

Since a command prompt requires specific input, it is basically useless if you don't know the syntax of the command you want to enter. Therefore, knowledge of some basic commands is required to use a command-line interface. Fortunately, most operating systems now use a graphical user interface GUI as their main way of requesting input from the user. This means you don't have to learn any special commands in order to use the computer. However, learning to use a command-line interface is kind of like learning to drive a car with a manual transmission. You never know when it might come in handy.

Updated: May 26, 2008

Cite this definition:


TechTerms - The Tech Terms Computer Dictionary

This page contains a technical definition of Command Prompt. It explains in computing terminology what Command Prompt means and is one of many software terms in the TechTerms dictionary.

All definitions on the TechTerms website are written to be technically accurate but also easy to understand. If you find this Command Prompt definition to be helpful, you can reference it using the citation links above. If you think a term should be updated or added to the TechTerms dictionary, please email TechTerms!

Subscribe to the TechTerms Newsletter to get featured terms and quizzes right in your inbox. You can choose to receive either a daily or weekly email.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe at any time.
Questions? Please contact us.