Skip to content

Meet the terminal

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

About 15 minutes. No account. No coding. Nothing to install, except the Linux environment on a Chromebook.

Console coaching on latency tuning and sensor calibration during VR practice.
XR Mentored Build
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.

Your computer

Pick yours once. Every command and key on this page, and on the other chapters, changes to match. It is remembered in this browser only.

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.

Practice screen
You type: pwd
/Users/youExample. Yours will differ.

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.

  1. Step 1 of 8. Ask where you are. The answer is a folder.

    You type: pwd
    /Users/youExample. Yours will differ.
  2. Step 2 of 8. Look at what is inside this folder.

    You type: ls
    A list of names appears. This pretend folder holds Desktop, Documents, Downloads and one file called notes.txt.
  3. Step 3 of 8. Make a new folder to practice in.

    You type: mkdir ai-practice
    On a Mac, Linux or Chromebook, nothing is printed. No news is good news. Windows prints a short table that names the new folder.
  4. Step 4 of 8. Go into the new folder.

    You type: cd ai-practice
    No message. On a real terminal, the prompt now shows ai-practice.
  5. Step 5 of 8. Ask again, to prove you moved.

    You type: pwd
    /Users/you/ai-practiceExample. Yours will differ.
  6. 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.
  7. Step 7 of 8. Wipe the screen when it gets crowded. Nothing is deleted, only tidied away.

    You type: clear

    The screen is cleared.

  8. Step 8 of 8. Read the text inside a file, without opening any app.

    You type: cat notes.txt
    Well 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.

  1. 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

    A mostly empty window with a short line of text and a blinking cursor. That line is the prompt. It is waiting for you.

    I see something else
  2. 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 and C:\ without the PS when you're in CMD.” This chapter uses PowerShell. If you see no PS, close the window and open the menu again with the Windows key and X.

    What you should see

    The line you type on starts with PS C:\.

    I see something else
  3. 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

    pwd

    This is your home folder, with your own name in place of “you”. pwd is short for print working directory: show me the folder I am working in.

    What you should see

    Mac

    /Users/you

    Example. Yours will differ.

    Windows

    Path ---- C:\Users\you

    Example. Yours will differ.

    Linux and Chromebook

    /home/you

    Example. Yours will differ.

    I see something else
  4. Look at what is here.

    In your terminal

    ls

    ls is short for list. It only looks. It never changes anything.

    What 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.

    Chromebook

    Possibly nothing at all. A new Linux setup can start with an empty home folder, and an empty folder prints nothing.

    I see something else
  5. Make a practice folder.

    Mind the space after mkdir, and the hyphen in the name. mkdir is short for make directory.

    In your terminal

    mkdir ai-practice

    What you should see

    Mac, Linux and Chromebook

    Nothing. The prompt simply comes back. In a terminal, no message usually means it worked.

    Windows

    A short table that names the new folder, ai-practice.

    I see something else
  6. Look again, to see your folder.

    In your terminal

    ls

    What you should see

    The same list as before, with one new name in it: ai-practice. You made that.

    I see something else
  7. Go into your folder.

    cd is short for change directory. It moves you into the folder you name.

    In your terminal

    cd ai-practice

    What you should see

    No message. Look at the prompt: it now shows ai-practice. Run pwd again if you want proof.

    I see something else
  8. Go back up.

    Two dots mean the folder above this one. Mind the space between cd and the dots.

    In your terminal

    cd ..

    What you should see

    No message. The prompt no longer shows ai-practice. You are back in your home folder.

    I see something else
  9. Clear the screen.

    In your terminal

    clear

    What you should see

    An empty window with only the prompt. Nothing was deleted. Your folder is still there.

    I see something else
  10. Bring back your last command.

    Press the Up arrow key once. This saves a lot of typing.

    What you should see

    The word clear appears on the line again, without you typing it. Press Enter to run it, or rub it out with the delete key (Backspace on Windows).

    I see something else
  11. 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

    pwd

    What you should see

    The same answer as the first time you ran pwd: your home folder.

    I see something else
  12. Close the terminal.

    Mac

    Type exit and 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

    The terminal is gone. Your ai-practice folder is still on your computer, ready for chapter 7. Closing a terminal does not break anything.

    I see something else

The eight commands

What you wantType thisHow to remember it
Where am I?pwdPrint working directory.
What is in this folder?lsList.
Go into a foldercd foldernameChange directory. Use the real folder name.
Go up one foldercd ..Two dots mean the folder above.
Make a foldermkdir nameMake directory. Use the name you want.
Clear the screenclearIt tidies the window. It deletes nothing.
Show a file's textcat file.txtUse the real file name. You will have a file to try it on in chapter 8.
Copy or move a filecp and mvThey can replace a file that has the same name, so this guide leaves them for later.

The same words work on a Mac, on Linux, on a Chromebook and in Windows PowerShell. The old CMD window uses different words, which is one more reason to use PowerShell. This guide never asks you to delete anything from the terminal.

Source: the official page (opens in a new tab)

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

Nothing you type here is sent anywhere.

Chapter 6

Check yourself

Question 1 of 5

Which command shows what is in the folder?

  1. Which command shows what is in the folder?

    • pwd
    • ls
    • cd
    Show the answer

    ls It is short for list. It shows the files and folders inside the folder you are in.

  2. 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.

  3. 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.

  4. 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.

  5. 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

  1. 1A terminal is a window where you type one line, press Enter, and read the answer.
  2. 2Three commands do most of the work: pwd shows where you are, ls shows what is there, and cd moves you.
  3. 3No message usually means it worked. Closing the terminal breaks nothing.

Saved in this browser only.

Where this comes from

Checked on November 25, 2026.

Tools, prices and rules change. These are the official pages we read on that day. If a page and this guide disagree, trust the page.

Seen something that has changed? Tell us: