TechBriefly
  • Tech
  • Business
  • Crypto
  • Science
  • Geek
  • How to
  • About
    • About TechBriefly
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • Languages
      • 中文 (Chinese)
      • Dansk
      • Deutsch
      • Español
      • English
      • Français
      • Nederlands
      • Italiano
      • 日本语 (Japanese)
      • 한국인 (Korean)
      • Norsk
      • Polski
      • Português
      • Pусский (Russian)
      • Suomalainen
      • Svenska
No Result
View All Result
TechBriefly
Home How to
How to use the exit command in Windows Command Prompt

How to use the exit command in Windows Command Prompt

Learn two simple ways to close Command Prompt in Windows using the exit command or the X button.

Emre ÇıtakbyEmre Çıtak
7 January 2026
in How to
Reading Time: 1 min read
Share on FacebookShare on Twitter

Learn two simple ways of closing a Command Prompt window in Windows.

Before you start: Ensure a Command Prompt window is open.

How to close Command Prompt in Windows

Follow these two methods to quickly exit any open Command Prompt window.

Method 1: Using the exit command

  • Type exit in the console.
  • Press Enter; the window will close.

Method 2: Using the X window control button

  • Locate the three window control buttons in the top-right corner of the Command Prompt window.
  • Click the X button to close it. On Windows 10, the button appears white until you hover your pointer over it.
Pro tip: Use the exit command when working in scripts or remote sessions without mouse access for faster closure.

If you need to reopen Command Prompt after closing it, press Windows key + R, type cmd, and hit Enter. This quickly launches a new window for your next task.

Regularly closing unused Command Prompt windows helps free up system resources and keeps your desktop organized. Consider pinning Command Prompt to your taskbar for even quicker access in the future. You can also explore PowerShell as a more powerful alternative for advanced command-line work.

Tags: command promptWindows
ShareTweet
Emre Çıtak

Emre Çıtak

Emre’s love for animals made him a veterinarian, and his passion for technology made him an editor. Making new discoveries in the field of editorial and journalism, Emre enjoys conveying information to a wide audience, which has always been a dream for him.

Related Posts

How to choose the right reset method for Samsung Galaxy devices

How to choose the right reset method for Samsung Galaxy devices

9 January 2026
What resetting end-to-end encryption does on iPhone, iPad or Mac

What resetting end-to-end encryption does on iPhone, iPad or Mac

9 January 2026
How to easily monitor your AT&T data usage and avoid overages

How to easily monitor your AT&T data usage and avoid overages

9 January 2026
How to reset your Bosch dishwasher when buttons won’t respond

How to reset your Bosch dishwasher when buttons won’t respond

9 January 2026

LATEST

How to choose the right reset method for Samsung Galaxy devices

What resetting end-to-end encryption does on iPhone, iPad or Mac

How to easily monitor your AT&T data usage and avoid overages

How to reset your Bosch dishwasher when buttons won’t respond

Disney+ brings TikTok-style scrolling to its streaming app

Xbox reveals lineup for next Developer Direct: Fable, Forza and more

FIFA and TikTok partner to stream live World Cup clips

YouTube updates search filters to separate Shorts from long videos

Google introduces AI Inbox to organize Gmail tasks and updates

Announcements made by Samsung Display at CES 2026

TechBriefly

© 2021 TechBriefly is a Linkmedya brand.

  • Tech
  • Business
  • Science
  • Geek
  • How to
  • About
  • Privacy
  • Terms
  • Contact
  • | Network Sites |
  • Digital Report
  • LeaderGamer

Follow Us

No Result
View All Result
  • Tech
  • Business
  • Crypto
  • Science
  • Geek
  • How to
  • About
    • About TechBriefly
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • Languages
      • 中文 (Chinese)
      • Dansk
      • Deutsch
      • Español
      • English
      • Français
      • Nederlands
      • Italiano
      • 日本语 (Japanese)
      • 한국인 (Korean)
      • Norsk
      • Polski
      • Português
      • Pусский (Russian)
      • Suomalainen
      • Svenska