The Command Prompt is a Windows program, and the fastest way to open it is to click Start, type cmd, and press Enter. On a Windows 11 machine the Start button sits in the middle of the taskbar, so the search box opens as soon as you start typing, not after you click anything.

The detail most people get wrong is the name itself. The Command Prompt is a Windows-only tool; on a Mac the equivalent program is called Terminal, and it lives in Applications > Utilities. If you follow Windows instructions on a Mac you will not find a single menu item that matches, and that is usually why someone concludes the tool is missing from their computer.

The Command Prompt Sits Inside Every Windows Install

There is nothing to download. Windows ships with the program, and it is stored as an executable file called cmd.exe in the Windows system folder. Because the program is already present, the search only needs to tell Windows which program you mean.

Four openings work on most Windows versions, and each is worth knowing because one of them will fail on the machine in front of you:

  • Click Start and type cmd, then press Enter. This works on Windows 10 and 11.
  • Press the Windows key, type Command Prompt, and choose the top result.
  • Open File Explorer, click the address bar, type cmd, and press Enter. The prompt opens already pointed at the folder you were viewing.
  • Right-click the Start button and look for Terminal or Command Prompt in the menu that appears. Newer Windows versions list Terminal there instead, and Terminal opens a command prompt tab by default.

Menu labels shift between Windows versions and between editions of Windows, so if a name in this list is not on your screen, try the next one rather than assuming the tool is gone.

Which Program You Actually Need Depends on the Task

People searching for the Command Prompt are often trying to run a single command they read somewhere, and the right program depends on what that command does. The table below matches the common cases to the tool that opens by default.

What you want to doProgram to openWhere it lives
Run basic Windows commands, check network settings, ping a siteCommand PromptStart menu search for cmd
Run newer Windows commands and multiple tabs in one windowWindows TerminalRight-click the Start button
Run a script with more options than the prompt offersWindows PowerShellStart menu search for PowerShell
Use a Unix-style shell on a MacTerminalApplications > Utilities
Use a shell on LinuxTerminal or ConsoleApplication menu; often a shortcut in the dock

The difference between Command Prompt, PowerShell and Terminal is not cosmetic, but for checking a network connection or listing files all three accept many of the same commands. If a set of instructions names one specific tool, open that one, because some commands exist only in one of them.

Opening the Prompt in the Folder You Are Already In

The single most useful trick is the address bar method. Open File Explorer, navigate to the folder holding the files you want to work with, click once in the address bar at the top, type cmd, and press Enter. A prompt window opens with the working directory already set to that folder.

Without that step you start in your user folder, and every command has to include the full path to the file you want. For someone following a tutorial that says run this command in the project folder, skipping this step is the most common reason the command fails with a message that the file cannot be found.

File Explorer on current Windows also offers a right-click option on a folder with a modifier key held, which opens a prompt or terminal at that location. The exact wording changes between versions, so the address bar route is the dependable one to remember.

Why the Prompt Refuses to Run Some Commands

A prompt that opens but rejects a command is behaving normally, not breaking. The two causes are permissions and the shell itself.

Administrator rights

Commands that change system settings, install software or edit files outside your user folder need elevation. Open the prompt as administrator by clicking Start, typing cmd, and choosing the option labelled Run as administrator from the results. The window title then shows Administrator, which tells you the change took effect. If the label is absent, right-click the result instead and pick the same option from the context menu. Run ordinary commands without elevation as a matter of habit; elevated windows can modify anything.

Wrong shell for the command

PowerShell uses different syntax from the Command Prompt. A command written as dir /a may fail in PowerShell, and a PowerShell command may fail in the prompt. Match the shell to the instructions rather than retyping the same command and hoping.

Reading the First Line of the Window

When the black window opens, the text before the blinking cursor tells you where you are. A path ending in a folder name means commands will act on that folder. A path ending in system32 is the standard starting point when you launch from the Start menu. Typing cd alone and pressing Enter prints the current folder, and typing cd .. moves up one level.

If you are not sure which program you opened, type exit and press Enter to close it, then try another route from the list above. The prompt leaves no lasting changes from a mistaken launch, so closing and reopening costs nothing.

For a Mac, open Applications > Utilities in Finder and double-click Terminal, or press Command and Space together, type Terminal, and press Enter. The window looks different from the Windows prompt but works the same way: commands run in whatever folder the terminal reports, and the cd command changes it.