Command Line 101 for Windows


Open up the application on your computer called “Command Prompt”.

If you’re not on Windows 8, go to the start menu and type “Command Prompt”.

If you are on Windows 8+, swipe right to find “Windows System”, within which you can find “Command Prompt”.

Its icon looks like , and the application (the terminal) will look something like

You can use the terminal to write commands to your computer (this is the “command line”). Let’s try it out!


In your terminal, type dir and hit enter.

The dir command, short for “directory”, tells your computer to list all of the file names for the folder you’re in. Your list of files probably includes “Desktop” and “Documents”, among others. Let’s try another command:


Now type cd Documents.

You are now in the Documents folder; cd means “change directory”. If you try dir again, you should see the contents of your Documents folder listed out. If you want to compare, open up My Comuter and look in Documents to see the same files.


Let’s get back to the folder we were in before:

cd ..

You changed directory again! dir to see what we have here. You’re back where you started! The .. after cd tells it to go up one folder in the directory.

Now you’re a cool hacker who can use the terminal to write in the command line. (If you want to learn more commands, there are a whole bunch of them here.)

<< Back to the lesson