Opening Command Prompt on Windows
Command Prompt is the text-based interface built into Windows that lets you run commands directly. The fastest way to open it is to press the Windows key, type cmd, and press Enter. Windows will show you "Command Prompt" in the search results — click it or press Enter to launch the window.
If you prefer using the menu, go to Start, then navigate to Windows System, and click Command Prompt. On Windows 11, you may see "Terminal" instead, which is a newer interface that also runs the same commands. Both work the same way for most tasks. You can also right-click on any folder in File Explorer and select "Open Command Prompt here" (or "Open in Terminal" on Windows 11). This opens Command Prompt already pointed at that folder, which saves you from typing the path yourself.
Opening Terminal on Mac
On Mac, the equivalent tool is called Terminal. Open it by pressing Command + Space to bring up Spotlight search, type terminal, and press Enter. Terminal will launch when ready.
You can also navigate to Applications, then Utilities, and double-click Terminal. If you use Terminal often, you can drag it to your Dock for quicker access — right-click the Terminal icon in the Dock, select Options, and choose "Keep in Dock." Like Windows, you can also open Terminal pointed at a specific folder. In Finder, right-click any folder, select Services, and choose "New Terminal at Folder" (this option may need to be enabled in System Preferences first).
Key Takeaways
- On Windows, press the Windows key, type cmd, and press Enter to open Command Prompt in seconds.
- On Mac, press Command + Space, type terminal, and press Enter to open Terminal.
- Both Windows and Mac let you right-click a folder and open the prompt or terminal already pointed at that location.
- Windows 11 shows "Terminal" as the default option, but Command Prompt still works the same way for standard commands.
- You can pin Command Prompt or Terminal to your taskbar or Dock so you do not have to search for it each time.
What You See When It Opens
When Command Prompt or Terminal opens, you will see a black or dark window with text. At the bottom is a blinking cursor next to a prompt — usually something like C:\Users\YourName> on Windows or YourName@Computer ~ % on Mac. This is where you type commands.
The prompt tells you where you are in the file system. If you opened it from a specific folder, the prompt will show that folder's path. If you opened it from the Start menu or Spotlight, it usually opens in your user folder by default. The prompt stays visible at the bottom of the window after each command you run, ready for the next one.
Pinning to Your Taskbar or Dock
If you use Command Prompt or Terminal regularly, pinning it to your taskbar (Windows) or Dock (Mac) saves time. On Windows, open Command Prompt, right-click its icon in the taskbar, and select "Pin to taskbar." On Mac, open Terminal, right-click its icon in the Dock, select Options, and choose "Keep in Dock."
Once pinned, you can click the icon directly instead of searching each time. You can also customize the window size and appearance in the settings so it opens the way you prefer. On Windows, you can resize the window by dragging the edges, and on Mac you can adjust text size through Terminal Preferences.
Running Command Prompt as Administrator
Some commands require administrator privileges to run. On Windows, search for Command Prompt, right-click the result, and select "Run as administrator." A dialog will ask for permission — click Yes to proceed. The window title will show "Administrator: Command Prompt" to confirm you have elevated access.
On Mac, you do not typically need to run Terminal as administrator for most tasks. If a command fails and asks for elevated access, you can type sudo before the command and enter your password when prompted. The sudo command temporarily gives that single command administrator-level permissions without opening a separate window.
Closing Command Prompt or Terminal
To close the window, type exit and press Enter, or straightforward click the X button in the corner. Either method works equally well. If you have unsaved work or running processes, closing the window will stop them, so make sure you have finished what you need to do first.
If a command is still running when you try to close the window, most systems will ask you to confirm before closing. This prevents you from accidentally stopping a long-running task. You can also press Ctrl + C on Windows or Mac to stop a command that is currently running without closing the entire window.
Frequently Asked Questions
Can I have multiple Command Prompt windows open at once?
Yes. Open Command Prompt as many times as you want — each window is independent. This is useful if you need to run commands in different folders or compare output from multiple commands at the same time.
What is the difference between Command Prompt and PowerShell on Windows?
PowerShell is a newer, more powerful command-line tool that can do everything Command Prompt does and more. For basic tasks, they work the same way. Command Prompt uses simpler syntax, while PowerShell is designed for advanced scripting and system administration.
Why does my command say "command not found" or "is not recognized"?
This usually means the program you are trying to run is not installed, or the system cannot find it in the standard locations. Check that you spelled the command correctly, and if it is a program you installed, make sure it is actually on your computer.
Can I change the text size or colors in Command Prompt or Terminal?
Yes. On Windows, right-click the title bar, select Properties, and adjust the font size and colors. On Mac, open Terminal Preferences (Command + comma) and choose a different theme or adjust text size in the Profiles tab.
Do I need to be connected to the internet to use Command Prompt or Terminal?
No. Most basic commands work offline. Some commands that check for updates or read files will need an internet connection, but opening the prompt and running local commands does not require it.