Setup15 min+50 XP

Terminal basics

Talk to your computer with typed commands. Only five of them, and you are ready.

0% done
TASK 1

Learn it

Key idea

The terminal is always in a folder. cd moves between folders.

Key words
~your home foldercodemkdir codevault_breakerhello.pypwd shows the folder you are incd codecd vault_breakercd ..
Your folders, and the cd commands that move between them.

The terminal (also called the command line) lets you control your computer by typing commands instead of clicking. Developers use it constantly, and you will need it to install and run things. It looks scary at first, but you only need a handful of commands.

The terminal is always "in" a folder, called the working directory. The key commands: show where you are, list what is here, change into a folder, make a new folder, and clear the screen. Folder names with spaces need quote marks around them.

Tip: press Tab to auto-complete a folder name, and the Up arrow to bring back your last command.

Real life linkProfessionals use the terminal because typing one command can do what would take twenty clicks, and commands can be saved and repeated.
  1. Open the terminal. On Ubuntu press Ctrl + Alt + T. On a Chromebook, first turn on Linux: Settings, then About ChromeOS (or Advanced), then Developers, then Linux development environment, then Turn on. When it finishes, open the Terminal app.
  2. Show where you are:
    pwd
  3. List the files and folders here:
    ls
  4. Make a folder for all your coding projects, then move into it:
    mkdir code
    cd code
  5. Go back up one folder, then clear the screen:
    cd ..
    clear
TASK 2

Capture the flag

+10 XP

Which command moves you into a folder? (two letters)

Create a free account to start this lab

Sign in to answer the flag question. Your progress, XP and code are saved to your account. No card needed.

HOMEWORK

Build your base camp

+20 XP

Use only the terminal for this mission.

Create a free account to start this lab

Sign in to do this homework and have it checked. Your progress, XP and code are saved to your account. No card needed.