What Is the Terminal? A Friendly Guide to the Command Line (and the Shortcuts Worth Knowing)
A black window. A blinking cursor. No buttons, no icons, no "are you sure?" It looks like something out of a hacker movie, and that's exactly why most people close it the second it opens.
Here's the secret: the terminal is just another way to tell your computer what to do. Instead of clicking, you type. That's it. And once you know a dozen commands and a few shortcuts, it stops being scary and starts being handy.
Terminal, Command Prompt, PowerShell: what's the difference?
They're all the same idea with different names:
| Name | Where you'll see it |
|---|---|
| Terminal | The app on a Mac, and on most Linux computers |
| Command Prompt (cmd) | The old-school version on Windows, still there |
| PowerShell | The newer, more powerful Windows version |
| Windows Terminal | The Windows app that holds Command Prompt and PowerShell in tabs. It's the default on Windows 11 |
The program that actually reads what you type is called the shell. Macs use one called zsh (the default since 2019), most Linux computers use bash, and Windows uses PowerShell. You don't need to care much about the difference, except that a few commands are spelled differently on Windows. We'll point those out.
How to open it:
- Mac: press ⌘ + Space, type Terminal, press Return.
- Windows 11: right-click the Start button and choose Terminal.
- Linux: on Ubuntu and many others, press Ctrl + Alt + T.
Why bother?
- Some fixes only live there. A lot of the best troubleshooting tools don't have a button.
- It's faster for repetitive stuff. Rename 200 files, check your network, update every app at once.
- AI tools are moving in. Many of the new AI coding assistants run right in the terminal. The more comfortable you are there, the more you can do with them.
- It's just good to know. Like knowing how to check your oil.
The 8 commands to learn first
These only look around and move around. They won't break anything.
| What it does | Mac & Linux | Windows (PowerShell) |
|---|---|---|
| Where am I? | pwd |
pwd |
| What's in this folder? | ls |
ls (or dir) |
| Go into a folder | cd Documents |
cd Documents |
| Go back up one folder | cd .. |
cd .. |
| Go to your home folder | cd ~ |
cd ~ |
| Make a new folder | mkdir Projects |
mkdir Projects |
| Open this folder in Finder or File Explorer | open . |
start . |
| Clear the screen | clear |
cls (or clear) |
A few things that make it click:
- The dot
.means "right here." Two dots..means "the folder above this one." - Folder names with spaces need quotes:
cd "My Files". - Stuck on what a command does? On a Mac or Linux, type
man lsto read the manual (press q to get out). In PowerShell, tryGet-Help ls.
The shortcuts that make it feel easy
| Shortcut | What it does | Works on |
|---|---|---|
| Tab | Finishes the file or folder name for you. Type cd Doc and press Tab |
Everywhere |
| Up arrow | Brings back your last command. Keep pressing to go further back | Everywhere |
| Ctrl + C | Stops whatever is running. Your emergency brake | Everywhere |
| Ctrl + L | Clears the screen | Mac, Linux, PowerShell |
| Ctrl + R | Searches your past commands as you type | Mac, Linux, PowerShell |
| Ctrl + A / Ctrl + E | Jump to the start / end of the line | Mac, Linux (Windows: Home / End) |
| Ctrl + U | Erases what you've typed | Mac, Linux (Windows: Esc) |
| Ctrl + D | Closes the session | Mac, Linux (Windows: type exit) |
| Drag a file into the window | Pastes its full location, no typing | Mac Terminal, Windows Terminal |
Yes, Ctrl + C means "stop" here, not "copy." We explain how copying works in the terminal in Command+C vs Control+C.
Tab and the up arrow alone will save you most of your typing. Honestly, if you only remember two things from this page, make it those two.
A few actually useful things to try
- Is the internet working?
ping google.comsends little test messages and shows how fast they come back. On a Mac or Linux it keeps going until you press Ctrl + C. - Speed test on a Mac:
networkQualityruns Apple's built-in internet speed test. (It's on macOS Monterey and newer.) - Keep a Mac awake:
caffeinatestops it from sleeping until you press Ctrl + C. Great for long downloads. - Make your Mac talk:
say hello. Not useful. Very fun. - Websites acting weird on Windows:
ipconfig /flushdnsclears your computer's saved list of website addresses. - Update apps on Windows:
winget upgradelists apps with updates waiting.winget upgrade --allupdates them. - Repair Windows system files: open Terminal as administrator (right-click Start → Terminal (Admin)) and run
sfc /scannow.
The one rule: know what you're pasting
The terminal doesn't have an undo button, and it doesn't ask "are you sure?" Two things to respect:
rmdeletes files for good. No Trash, no Recycle Bin. Don't run it until you're sure what it'll hit.sudo(Mac and Linux) and "Run as administrator" (Windows) give a command full control of your computer. Only use them when you know why.
And the big one: never paste a command from a stranger. If someone on the phone, in a pop-up or in a DM tells you to open the terminal and paste something "to fix your computer," it's a scam. Every time. (More in How to Spot a Fake Tech Support Scam.)
If you're not sure what a command does, ask an AI assistant to explain it in plain English before you run it, or just ask us.
Want help?
If you want somebody next to you the first few times, or there's a fix you've been told "you have to do in the terminal," that's an easy session. We'll walk through it together, explain every line and leave you with a cheat sheet. Book a session.