Closing Command Prompt is not a big deal. There are several methods for exiting the Command Prompt window. In this article, I will show you the process of closing the Command prompt window in the right way. So let’s get started.
Why is Command Prompt Used?
Command Prompt is widely used for troubleshooting any issues related to windows. It is a text-based User interface, and you can write certain command lines here and execute any program or task. It also performs advanced administrative tasks. Before knowing how to exit the command prompt window, you must learn how to open it.
Here, some easy methods of opening a Command prompt on windows will be discussed:
Running Command Prompt from Taskbar
For opening the Command prompt:
- Go to your taskbar.
- Select the “Search” icon at the bottom left corner of the taskbar.
- Type “Command Prompt,” and the “Command Prompt” icon will appear on top.
- Click on that icon and run the program.
Using Keyboard Commands
The following commands are suitable for windows 10:
- Press the “Windows” from the last row of the keyboard.
- Hold the “Windows” button and press the “R” button. Now a “Run” window will appear on display.
- Type “cmd” on the box and click on “Ok.”
- Now, the command prompt window will pop up.
Another way is
- Press the “Windows” and “X” buttons simultaneously. It will open an option bar.
- Select the “Run” option.
And you will see the command prompt.
Navigating to the Program
You can also open the command prompt manually by navigating some folders. For this:
- Go to the “Start” option from the taskbar or press the “Windows” button from your keyboard.
- Scroll down the menu bar and stop at the “Windows System” folder.
- Click on the folder.
- This will show you the “Command Prompt” option.
- Click on the option and launch it.
If you are on a school or University computer, these solutions may not work due to restrictions.
Closing Command Prompt Window
Now, this is the central part of this article. Closing the Command Prompt window is not a big deal. In this section, I will discuss multiple methods. You can use any one of them.
Using Keyboard Commands
- Press the “Alt” button along with the F4 button. The F4 button is located at the top row of the keyboard.
And, your work is done.
Using “Exit” Command Line
- Open the “Command Prompt” window following any method described above.
- Write “Exit” in the console.
- Press the “Enter” button.
Click on the “X” Windows Control Button
- Go to the top right corner of the “Command prompt” Window.
- Click on the red-colored “X” button.
You can also:
- Right-click on top of the banner of the “Command Prompt” window.
- Select the “Close” option.
Closing a Particular Program in Command Prompt (Windows 7, 8, 10)?
The “taskkill” command line delete any process from the command prompt:
- Click the “Start” icon from your taskbar.
- Type “cmd” on the “Search” option.
- Click on “cmd” to launch the command prompt window.
- Type “tasklist” to find the program’s list.
- Press the “Enter” button.
- Now, type “taskkill/in (program name.exe)” and press the “Enter” button.
This method is also applicable for windows 11.
Summary: Exit Command Prompt
- You can exit Command Prompt in several ways.
- To exit Command Prompt on your computer, type exit and then press Enter on your keyboard.
- You can also use the X button in the top-right corner to close Command Prompt.
- It's also possible to exit Command Prompt using its keyboard shortcut Alt+F4.