Skip to content
Everyone-Website
How-to

How to Use Command Prompt on Windows: A Beginner's Guide

A clear, beginner-friendly guide to the Windows Command Prompt — how to open it, the essential commands, moving around your folders, and handy tips, no jargon.

Updated 2 June 2026 6 min read

If you’ve ever seen someone typing white text into a black window and wondered what they were doing, you were watching Command Prompt in action. It looks intimidating, but it’s just another way to tell your computer what to do — by typing instead of clicking. This guide walks you through opening it, understanding what’s on screen, and learning the handful of commands that cover almost everything a beginner needs.

What is Command Prompt?

Command Prompt is the classic Windows command-line program. Its actual filename is cmd.exe, which is why people often just call it “cmd.” Instead of clicking icons and menus, you type short text commands and press Enter, and Windows carries them out.

It has been part of Windows for decades. While newer tools exist (more on that at the end), Command Prompt is still useful for quick tasks: checking your network connection, navigating folders, fixing certain system problems, or running commands that a help article tells you to type. Everything is text-based — there are no buttons inside the window, just a prompt waiting for your input.

How to open Command Prompt

There are several easy ways to open it. Pick whichever feels most natural.

  • Start menu search (easiest): Click the Start button (or press the Windows key), type cmd, and press Enter. Command Prompt will appear at the top of the results.
  • Run dialog: Press Win + R together to open the Run box, type cmd, and press Enter.
  • From a folder’s address bar: Open any folder in File Explorer, click in the address bar at the top, type cmd, and press Enter. Command Prompt opens already pointed at that folder — a real time-saver.

Running as administrator

Some commands change system settings or repair Windows, and those require extra permission. To get it, you open Command Prompt “as administrator.”

  1. Click Start and type cmd.
  2. Instead of pressing Enter, right-click Command Prompt in the results.
  3. Choose Run as administrator and click Yes if Windows asks for confirmation.

An administrator window usually says “Administrator” in its title bar. You only need it for commands that touch the whole system, such as sfc /scannow or chkdsk. For everyday navigation and file commands, a normal window is fine.

Understanding what you see

When Command Prompt opens, you’ll see a line that looks something like this:

C:\Users\YourName>

That line is called the prompt, and it tells you a few things:

  • C: is the drive you’re currently on (your main hard drive).
  • \Users\YourName is the folder you’re currently inside — your “current location.”
  • The > symbol marks where your typing begins.

After the > you’ll see a blinking cursor. That just means the window is ready and waiting for you to type a command. Whatever folder path is shown is where any command you type will run, which matters a lot once you start working with files.

Essential commands

These are the core commands worth knowing. Type the command, press Enter, and watch what happens. Commands are not case-sensitive, so DIR and dir work the same.

CommandWhat it does
cdChanges the current folder (Change Directory)
dirLists the files and folders in the current location
clsClears the screen
mkdirMakes a new folder (Make Directory)
rmdirRemoves a folder (Remove Directory)
copyCopies a file to another location
moveMoves a file to another location
delDeletes a file
renRenames a file or folder
typeShows the contents of a text file on screen
helpLists available commands, or explains one
exitCloses the Command Prompt window

Tip: type help on its own for a list of commands, or help cd to see detailed instructions for a single command.

Moving around your folders

Most of your time in Command Prompt is spent moving between folders with cd. Here are the patterns you’ll use constantly.

Move into a folder that’s inside your current location:

cd Documents

Go back up one level to the parent folder:

cd ..

Jump straight to a folder by typing its full path:

cd C:\Users\YourName\Downloads

Switch to a different drive (for example, a USB stick shown as drive D) by typing the drive letter and a colon:

D:

Absolute vs relative paths

This sounds technical but it’s simple:

  • An absolute path starts from a drive letter and spells out the whole route, like C:\Users\YourName\Pictures. It works no matter where you currently are.
  • A relative path is shorthand based on your current location, like cd Pictures (meaning “the Pictures folder right here”) or cd .. (meaning “the folder above this one”).

Use relative paths for quick hops nearby, and absolute paths when you want to be certain you’ll land in the right place.

Handy everyday commands

These commands are genuinely useful for real tasks, especially networking and basic troubleshooting. Each line below explains what the command does.

  • ipconfig — shows your computer’s network details, including its IP address.
  • ping example.com — checks whether you can reach a website or server and how fast it responds.
  • ipconfig /flushdns — clears the saved list of website addresses, which can fix some browsing errors.
  • sfc /scannow — scans Windows system files and repairs corrupted ones (run as administrator).
  • chkdsk — checks a disk for errors; add a drive letter like chkdsk D: to check a specific drive.

For the last two, use an administrator window. sfc /scannow can take several minutes, so let it finish without closing the window.

Tips and shortcuts

A few small habits make Command Prompt much more pleasant to use:

  • Tab to auto-complete: Start typing a file or folder name, then press Tab and Windows fills in the rest. Keep pressing Tab to cycle through matches. This saves typing and avoids spelling mistakes.
  • Up and Down arrows for history: Press the Up arrow to bring back commands you typed earlier, and Down to move forward again. Great for repeating or tweaking a previous command.
  • Copy and paste: Select text in the window with your mouse and press Ctrl + C to copy. Press Ctrl + V (or right-click) to paste a command in. This makes it easy to follow along with online instructions.
  • Clear the clutter: When the window fills up, type cls and press Enter to wipe the screen clean and start fresh.

Command Prompt vs PowerShell

You may have heard of PowerShell and wondered how it differs. Both let you type commands, but PowerShell is the newer, more powerful tool. Command Prompt is great for simple, classic commands and quick tasks. PowerShell understands those same commands too, but it adds a full scripting language, can automate complex jobs, and works with objects and data in ways Command Prompt can’t. For everyday basics, Command Prompt is perfectly fine; if you grow into automation or system administration, PowerShell is where you’ll head next.

Wrapping up

Command Prompt is far friendlier than it looks. Once you can open it, read the prompt, move between folders, and run a few essential commands, that black window stops being mysterious and starts being a handy shortcut. Try opening it now and typing dir or help — there’s no faster way to get comfortable than poking around for yourself.