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 tell if your iPhone or Android phone is carrier unlocked

How to tell if your iPhone or Android phone is carrier unlocked

16 January 2026
How to apply screen protectors without air bubbles

How to apply screen protectors without air bubbles

16 January 2026
How to check if someone read your message on iPhone or iPad

How to check if someone read your message on iPhone or iPad

16 January 2026
A guide to viewing calculation history on iOS 18

A guide to viewing calculation history on iOS 18

16 January 2026

LATEST

OpenAI rockets $250 million into Altman’s Merge Labs brain-AI bridge

Bluesky opens “Live Now” badges to all users to lure Twitch creators

Capcom reveals Resident Evil: Requiem classic mode and ink ribbons

How to tell if your iPhone or Android phone is carrier unlocked

Paramount+ slams subscribers with first price hike since 2024

Ashley St. Clair sues xAI over Grok deepfakes

Samsung launches instant-play cloud streaming in Mobile Gaming Hub update

Netflix secures Sony Pictures first-to-stream rights

How to apply screen protectors without air bubbles

How to check if someone read your message on iPhone or iPad

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