If you've never opened one, this is for you. We'll go slowly.
The command line is the oldest way to talk to a computer, and somehow also the most powerful one still in daily use. Every operating system has one — Windows calls it Command Prompt, macOS and Linux call it Terminal. Under the hood they are the same idea: you type a sentence, the computer does the thing.
This guide assumes you are on Windows and have never touched it before. We're going to open it together, say hello to it, walk through your own files, make a brand new file from a single line of text, and then put what you learned into a playground at the bottom of the page. By the end you should feel like the command line is a place you can visit, not a place you fear.
There are several ways to open Command Prompt on Windows. The fastest one works on every version since Windows 7:
A black window opens. It probably says something like C:\Users\YourName> with a small blinking cursor after it. That blinking cursor is the computer waiting for you. It will wait forever. There's no rush.
Your first command will be the simplest possible one. It does one thing: it repeats whatever you type after it. The command is called echo.
Type this, then press Enter:
The computer wrote "hello" back to you. That's it — that's a command. You typed a verb (echo), followed by what it should act on (hello), pressed Enter, and the computer obeyed.
Every command on this page follows the same shape: verb, then thing. Once you internalize that, the rest is just learning verbs.
You're standing somewhere on your computer's file system. Probably in your user folder. To see what's around you, ask for a directory listing:
dir is short for "directory" — it lists everything in your current folder. Items marked <DIR> are folders; the rest are files. This is the same information File Explorer shows you, just written instead of drawn.
To move into a folder, use cd (change directory) followed by the folder name. To go back up one level, use cd .. — two dots mean "the folder above this one."
Your computer's file system is a tree. Folders branch into folders branch into folders. cd is how you climb the tree without touching a mouse. That's all File Explorer is doing under the hood when you double-click.
This one is the small miracle of the command line. Remember echo from step two? It just prints text to the screen. But if you add a > followed by a filename, it writes that text to a file instead.
Open File Explorer and look in your user folder. There's a brand new file called hello.txt. Open it — your sentence is inside. You just created a real file on your computer by writing one line of text. That's the command line's whole personality compressed into a single action.
This is a real, working mini terminal. Not a real Windows cmd — just a small simulation that understands the commands you just learned. Click the dark area and type a command, then press Enter.
Try: help, echo something, dir, cd Desktop, cd .., echo my first line > note.txt, cls
One page. Every command from this guide. Harmless .txt, opens anywhere.
Welcome to the back room of computing.
tarik tigli