Command Prompt is a command-line interface program used to execute commands in the Windows operating system. Most of these commands are used to automate tasks through scripts, troubleshoot or solve certain problems on Windows. The Command Prompt is officially known as the Windows Command Processor, but it is also sometimes referred to as the command shell or cmd prompt or by its filename, cmd.exe.
Command Prompt is sometimes incorrectly referred to as MS-DOS. Command Prompt is a Windows program that emulates many of the command line capabilities available in MS-DOS, but it is not MS-DOS.
How to open Command Prompt
There are several different ways to open Command Prompt depending on the version of Windows. In it, the easiest way is through the Command Prompt shortcut located in the start menu. On Windows 10, do:
Step 1: Press the Window key or click on the window icon in the left corner of the taskbar.
Step 2: Type cmd or command prompt in the search box. Open search results.
Another way is through the Ctrl + R window, enter cmd in the command box and select Ok to open.
As a result, the Command Prompt program will be displayed.
How to use Command Prompt
To use the Command Prompt, you enter a valid command with optional parameters to execute the command. The Command Prompt will then run the command as typed and perform the task or function it was designed to perform in Windows.
For example, the command for you to check if the internet is up or not is ping + a certain website name. Example ping ticswipe.com
The command must be entered correctly into the Command Prompt. If you enter the wrong syntax or spelling errors, the command can not be executed or be mistaken for another command.
For example, the dir command displays a list of files and directories that exist in a specific location on the computer. But if you type in the del command, the files will be locked from your computer!
Common commands in Command Prompt
You don’t need to know all the Command Prompt commands, instead, some common commands have helped in many cases:
Help – This is possibly the most important Command Prompt command, typing in Help will show you a list of available commands.
IPConfig – If you have network problems, IPConfig will tell you a lot of information, including your router’s IP address and the status of your network connections.
Ping – When you need to confirm whether your internet is working properly or not. You need to enter Ping + website name. For example, Ping Google.com.
Chkdsk – Checks the drive for errors. While there are many Windows and third-party tools to check for disk errors, Check Disk is a classic tool that works well and can help you avoid data loss if it detects problems early enough.
SFC – stands for System File Checker, this command will scan through Windows system files to find and fix errors if possible.
Cls – Used to clear the results on the screen. The results of Command Prompt commands can be useful, but they are not readable. If the screen is too full, you can type Cls and press enter to clear it.
Dir – This command displays all files and directories located in the current location.
Netstat – This command displays information about connections on the machine, including TCP connections, the ports your system is listening on, Ethernet statistics, and the IP routing table.
Exit – Exit the Command Prompt
Tasklist – Gives you all the information about active Windows tasks. You can add parameters like tasklist -m to learn more about these tasks and how they work. If you want to stop a certain program, use Taskkill.
Shutdown – Used to shutdown or scheduled shutdown. You can do this through the Command Prompt.
Command Prompt availability
Command Prompt is available on any Windows NT-based operating system, including Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, and Windows 2000, as well as Windows Server 2012, 2008 and 2003.
Windows PowerShell, and enhanced command-line interpreter available in recent versions of Windows, has added the ability to execute commands contained in the Command Prompt. Therefore, Windows PowerShell will probably completely replace Command Prompt in the future.