Meet the terminal
Open the terminal, type your first commands, and close it again without fear.

- Time
- About 15 minutes
- You do not need
- No account. No coding. Nothing to install, except the Linux environment on a Chromebook.
- You need
- A Mac, Windows or Linux computer. On a Chromebook, read the Chromebook note first.
- You will be able to
- Open and close a terminal on your computer.
- Find out where you are and what is there.
- Make a folder and move into it.
You need a computer for the real steps. The practice screen works here.
What a terminal is
A terminal is a window where you type instructions instead of clicking. That is all.
You type one short line and press Enter. The computer does it, answers in plain text, and waits for your next line. Each line you type is called a command.
It can look serious, like something from a film about hackers. It is not. You need eight short commands, and the ones you type in this chapter cannot delete or change anything you already have.
Why learn it at all? Because the AI tool in the next chapter is started by typing its name here. Ten minutes of practice now makes that chapter easy.
“You can't click on things in the terminal. Use the arrow keys to move around.”
Three words to know
Prompt
The short bit of text at the start of the line, with a blinking cursor after it. It means: ready when you are. Yours may show your name and a folder.
Command
One line you type, followed by Enter. Nothing happens until you press Enter, so you can always fix a typing mistake first.
Folder
The same folders you already know, such as Documents and Downloads. A terminal is always inside one folder at a time. Some people say directory. It means the same thing.
Practice here first
This is a pretend terminal. Press Play, or go one step at a time with Next step. You cannot break it, and it cannot touch your computer.
Step 1 of 8
Ask where you are. The answer is a folder.
A practice screen. Nothing runs on your computer. A real prompt is longer: it also names the folder you are in.
A practice screen. Nothing runs on your computer. A real prompt is longer: it also names the folder you are in.
Step 1 of 8. Ask where you are. The answer is a folder.
You type: pwd/Users/youExample. Yours will differ.Step 2 of 8. Look at what is inside this folder.
You type: lsA list of names appears. This pretend folder holds Desktop, Documents, Downloads and one file called notes.txt.Step 3 of 8. Make a new folder to practice in.
You type: mkdir ai-practiceOn a Mac, Linux or Chromebook, nothing is printed. No news is good news. Windows prints a short table that names the new folder.Step 4 of 8. Go into the new folder.
You type: cd ai-practiceNo message. On a real terminal, the prompt now shows ai-practice.Step 5 of 8. Ask again, to prove you moved.
You type: pwd/Users/you/ai-practiceExample. Yours will differ.Step 6 of 8. Go back up one folder. Two dots mean the folder above this one.
You type: cd ..No message again. You are back where you started.Step 7 of 8. Wipe the screen when it gets crowded. Nothing is deleted, only tidied away.
You type: clearThe screen is cleared.
Step 8 of 8. Read the text inside a file, without opening any app.
You type: cat notes.txtWell done. You just read a file from the terminal.Example. Yours will differ.
Do it for real
Now on your own computer. One action per step. After each one, compare your screen with What you should see. You cannot harm anything with these commands.
Open the terminal.
Mac
Press CmdSpace, type
Terminal, and press Enter. Another way: open Finder, then Applications, then Utilities, and double-click Terminal.Windows
Hold the Windows key (the one with the Windows logo, near the bottom left of the keyboard) and press X. A menu opens. Choose Terminal or Windows PowerShell. Do not choose the one that says Admin. PowerShell is the terminal built into Windows. It is already on your computer.
Linux
Press CtrlAltT, or search for Terminal in your application menu.
Chromebook
Select the time at the bottom right, then Settings, then About ChromeOS, then Developers. Next to Linux development environment, select Set up and follow the instructions. Google says: “Setup can take 10 minutes or more.” When it finishes, a terminal window opens.
What you should see
I see something elseA mostly empty window with a short line of text and a blinking cursor. That line is the prompt. It is waiting for you.
Check which terminal you are in.
Windows only
Windows has two terminals that look alike: PowerShell and an older one called CMD. The official guide says “your prompt shows
PS C:\when you're in PowerShell andC:\without thePSwhen you're in CMD.” This chapter uses PowerShell. If you see noPS, close the window and open the menu again with the Windows key and X.Ask where you are.
Mac
Type the command below, then press Enter. On a Mac keyboard that key is labelled return. Every command works this way: type it, then Enter.
Windows, Linux and Chromebook
Type the command below, then press Enter. Every command works this way: type it, then Enter.
In your terminal
pwdWhat you should see
Mac
/Users/you
Windows
Path ---- C:\Users\you
I see something elseLinux and Chromebook
/home/you
Look at what is here.
In your terminal
lsWhat you should see
Mac and Linux
A list of names, such as Desktop, Documents and Downloads. These are the files and folders inside your home folder.
Windows
A table. The names are in the last column, such as Desktop, Documents and Downloads. The other columns show dates and sizes.
I see something elseChromebook
Possibly nothing at all. A new Linux setup can start with an empty home folder, and an empty folder prints nothing.
Make a practice folder.
Mind the space after
mkdir, and the hyphen in the name.mkdiris short for make directory.In your terminal
mkdir ai-practiceWhat you should see
Mac, Linux and Chromebook
Nothing. The prompt simply comes back. In a terminal, no message usually means it worked.
I see something elseWindows
A short table that names the new folder,
ai-practice.Look again, to see your folder.
In your terminal
lsWhat you should see
I see something elseThe same list as before, with one new name in it:
ai-practice. You made that.Go into your folder.
cdis short for change directory. It moves you into the folder you name.In your terminal
cd ai-practiceWhat you should see
I see something elseNo message. Look at the prompt: it now shows
ai-practice. Runpwdagain if you want proof.Go back up.
Two dots mean the folder above this one. Mind the space between
cdand the dots.In your terminal
cd ..What you should see
I see something elseNo message. The prompt no longer shows
ai-practice. You are back in your home folder.Clear the screen.
In your terminal
clearWhat you should see
I see something elseAn empty window with only the prompt. Nothing was deleted. Your folder is still there.
Bring back your last command.
Press the Up arrow key once. This saves a lot of typing.
What you should see
I see something elseThe word
clearappears on the line again, without you typing it. Press Enter to run it, or rub it out with the delete key (Backspace on Windows).Practice pasting.
Mac
Press Copy on the line below. Click inside the terminal, press CmdV, then Enter. In chapter 7 you will paste one long line, and pasting avoids typing mistakes.
Windows
Press Copy on the line below. Click inside PowerShell, press CtrlV or right-click, then press Enter. In chapter 7 you will paste one long line, and pasting avoids typing mistakes.
Linux and Chromebook
Press Copy on the line below. Click inside the terminal, press CtrlShiftV, then Enter. Plain CtrlV is not the paste key in a Linux terminal. In chapter 7 you will paste one long line, and pasting avoids typing mistakes.
In your terminal
pwdWhat you should see
I see something elseThe same answer as the first time you ran
pwd: your home folder.Close the terminal.
Mac
Type
exitand press Enter. Then, in the menu bar at the top, choose Terminal, then Quit Terminal.Windows, Linux and Chromebook
Close the window, the same way you close any other window.
What you should see
I see something elseThe terminal is gone. Your
ai-practicefolder is still on your computer, ready for chapter 7. Closing a terminal does not break anything.
The eight commands
| What you want | Type this | How to remember it |
|---|---|---|
| Where am I? | pwd | Print working directory. |
| What is in this folder? | ls | List. |
| Go into a folder | cd foldername | Change directory. Use the real folder name. |
| Go up one folder | cd .. | Two dots mean the folder above. |
| Make a folder | mkdir name | Make directory. Use the name you want. |
| Clear the screen | clear | It tidies the window. It deletes nothing. |
| Show a file's text | cat file.txt | Use the real file name. You will have a file to try it on in chapter 8. |
| Copy or move a file | cp and mv | They can replace a file that has the same name, so this guide leaves them for later. |
Three keys that help
- Enter
Runs the line you typed. Until you press it, nothing has happened, so you can still fix a mistake.
- Up
The Up arrow brings back the last command you ran. Press it again to go further back.
- CtrlC
Stops a command that is still running, or throws away the line you are typing, and gives you the prompt back. On a Mac it is the control key, not Command.
If something goes wrong
Choose No, or close the box. You picked the Admin one, and Windows asks before it opens that. Open the menu again and choose the one without Admin.
Nothing in this guide needs the Admin terminal.
Did you press Enter? A command only runs when you do.
If you did, it may have worked. Some commands print nothing when they succeed. Run
pwd. If you get an answer and the prompt comes back, all is well.The terminal did not know the first word you typed. It is nearly always a typing mistake.
Check the spelling. Commands are in small letters. Check the spaces too:
cd ai-practicehas one space in it. Press the Up arrow, fix the line, and press Enter.There are two possible causes. The first is a typing mistake: check the spelling and the spaces, press the Up arrow, fix the line, and press Enter.
The second is that you are in the old CMD window, which does not know these commands. Look at the start of the line. No
PS? Close the window and open PowerShell with WinX.You are in CMD, not PowerShell. Close the window. Press WinX and choose Windows PowerShell or Terminal.
On some versions of Windows the menu says Terminal instead. Choose that. Microsoft says it opens with PowerShell, and you can check by looking for
PSat the start of the line.You named a folder or file that is not inside the folder you are in.
Run
lsto see the names that are here. Then type the name exactly as it is shown, hyphen and all. If your folder is not in the list, runpwdto see where you are.You have already made a folder with that name, perhaps a minute ago. Nothing was harmed and nothing was replaced. Carry on with the next step.
Run
pwdto see where you are. Runcd ..to go up one folder, as many times as you need.Or close the terminal and open it again. A new terminal window usually starts in your home folder.
Press CtrlC. That stops whatever is running and gives you the prompt back.
If that does not help, close the window and open a new one. You lose nothing by doing that.
The paste key depends on your computer. On a Mac it is CmdV. In PowerShell it is CtrlV, or a right-click. In a Linux terminal, and on a Chromebook, it is CtrlShiftV.
Click inside the terminal window first, so it knows you are talking to it.
Linux has probably been switched off by your school or by whoever manages the Chromebook. Google's help page says to contact your administrator. At school, that means asking your teacher.
Until then, use the practice screen on this page. It teaches the same commands.
That is how terminals work. The official guide puts it plainly: “You can't click on things in the terminal. Use the arrow keys to move around.” Use the left and right arrow keys to move along the line.
Chapter 6
Check yourself
Question 1 of 5
Which command shows what is in the folder?
Which command shows what is in the folder?
pwdlscd
Show the answer
lsIt is short for list. It shows the files and folders inside the folder you are in.On a Mac, you make a folder called games with mkdir and see no message. What happened?
- It failed.
- It worked.
Show the answer
It worked. On a Mac, Linux or Chromebook, making a folder prints nothing when it works. Run ls and you will see the new folder.
On Windows, the line you type on starts with PS C:\ Where are you?
- In CMD.
- In PowerShell.
Show the answer
In PowerShell. PS is short for PowerShell. That is the one this guide uses.
How do you paste into a Linux terminal?
- CtrlV
- CtrlShiftV
Show the answer
CtrlShiftV In a Linux terminal, paste is Ctrl, Shift and V together. On a Mac it is Cmd and V.
You want a new folder, and you want to be inside it. Put the steps in order.
Show the answer
Open the terminal, Make the folder with mkdir, Go into it with cd, Check where you are with pwd. The folder has to exist before you can go into it. Asking where you are at the end proves that it worked.
What you learned
- 1A terminal is a window where you type one line, press Enter, and read the answer.
- 2Three commands do most of the work: pwd shows where you are, ls shows what is there, and cd moves you.
- 3No message usually means it worked. Closing the terminal breaks nothing.
Where this comes from
Checked on November 25, 2026.
- Anthropic
- Apple
- Microsoft
- Windows Terminal installation (opens in a new tab)
- Windows Terminal FAQ (opens in a new tab)
- Keyboard shortcuts in Windows (opens in a new tab)
- PowerShell: Using aliases (opens in a new tab)
- PowerShell: Get-Location (opens in a new tab)
- PowerShell: about PSReadLine functions (opens in a new tab)
- How User Account Control works (opens in a new tab)
Seen something that has changed? Tell us: