We need tools to interact with the operating system of the computer. This is where Graphical User Interface and Command Prompts come into play. Graphical User Interface allows users to interact with the Operating System for simple tasks. Command Prompts are used for complicated tasks like batch processing, automation, etc.
What is a Command Prompt?
A Command Prompt is basically a Command Line Interface. It is an application in which the user enters commands and the operations are executed accordingly. The Command Prompt is an integral part of the Windows Operating System. Also known as the Windows Command Processor, it is a file with the extension .exe.

History of Command Prompt
With the development of the Operating System in the 1960s and 1970s, Bourne Shell became popular. Then Microsoft introduced MS-DOS, which used Command.com to interact with the operating system. At that time GUI was not introduced. Later in the 1980s, Windows introduced Windows Command Processor or the command shell. The command shell was further enhanced with the integration of the .NET framework.
How to Access Command Prompt?
To access the command prompt there are two ways:
First way
- Click on the Start Menu or press the Windows logo button from the keyboard.
- Type 'cmd' or 'Command Prompt' in the search bar.
- Click on the command prompt from the search results.
Second way
- Press Windows+R from the keyboard.
- Type 'cmd' in the Run dialog box.
- Click on OK.
Commonly Used Commands in Command Prompt
Several commands are used in the command prompt. Let us have a look at each of them :
Command Name | Use |
|---|---|
cd | Switch to the directory or path in which you want to perform task |
dir | See the list of files and folders in the current working directory |
mkdir | Make a new directory |
rmdir | Used to delete or remove a directory |
del | Used to delete one or more files |
move | Move a particular file from the present location to another location |
copy | Copy files from the present location to another location |
systeminfo | Get detailed information about our system |
tasklist | Used to get details of running processes or tasks |
ping | Connect to another IP address |
echo | Used to display messages in the interface |
ipconfig | Display current TCP/IP network configuration values |
help | Get information about any particular command |
exit | Used to exit the command shell |
Uses of Command Prompt
Some uses of the Command Prompt are as follows:
- Command Prompts are useful as they help automate tasks by using batch scripting. For example, we want to schedule the execution of a Deep Learning Model. Using the concept of scripting we can batch the process and it will be executed accordingly.
- It is useful as it helps to get system information in detail.
- This command shell is used for network configurations, troubleshooting the network configurations, etc.
- We can directly execute commands of any programming language. We can build scripts, run compilers, and use git for version controls.
- We can use command prompts for handling complex tasks like managing environment variables etc.