How To Exit Command Prompt?

537 Views
0 rating based on 0 reviews

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.

Exit Command Prompt

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.

How can you Open Command Prompt?

Here, some easy methods of opening a Command prompt on windows will be discussed:

Running Command Prompt from Taskbar

For opening the Command prompt:

  1. Go to your taskbar.
  2. Select the “Search” icon at the bottom left corner of the taskbar.
  3. Type “Command Prompt,” and the “Command Prompt” icon will appear on top.
  4. Click on that icon and run the program.

Command Prompt from the Taskbar

Using Keyboard Commands

The following commands are suitable for windows 10:

  1. Press the “Windows” from the last row of the keyboard.
  2. Hold the “Windows” button and press the “R” button. Now a “Run” window will appear on display.
  3. Type “cmd” on the box and click on “Ok.”
  4. Now, the command prompt window will pop up.

Another way is

  1. Press the “Windows” and “X” buttons simultaneously. It will open an option bar.
  2. 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:

  1. Go to the “Start” option from the taskbar or press the “Windows” button from your keyboard.
  2. Scroll down the menu bar and stop at the “Windows System” folder.
  3. Click on the folder.
  4. This will show you the “Command Prompt” option.
  5. 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

  1. 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

  1. Open the “Command Prompt” window following any method described above.
  2. Write “Exit” in the console.
  3. Press the “Enter” button.

Type the Exit Command

Click on the “X” Windows Control Button

  1. Go to the top right corner of the “Command prompt” Window.
  2. Click on the red-colored “X” button.

Click on the X Windows

You can also:

  1. Right-click on top of the banner of the “Command Prompt” window.
  2. Select the “Close” option.

Option from the Windows Banner

Closing a Particular Program in Command Prompt (Windows 7, 8, 10)?

The “taskkill” command line delete any process from the command prompt:

  1. Click the “Start” icon from your taskbar.
  2. Type “cmd” on the “Search” option.
  3. Click on “cmd” to launch the command prompt window.
  4. Type “tasklist” to find the program’s list.
  5. Press the “Enter” button.
  6. 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.