Setting up your terminal
A working terminal turns the rest of Technical Foundations into something you can try, not just read. Choose the browser workspace or your own computer, run one simple command, then check that the course tools are ready.
Why a terminal
Most apps present buttons and tidy results. A terminal lets you give a computer a written instruction and see its exact answer. For identity work, that matters: you can look at a request, a response, a key or a tokenA piece of data issued by a trusted service that a client presents as a credential, for example to call an API or to report a sign-in. Some tokens carry readable claims; others are random strings that only the issuer can interpret. without an app deciding which details to hide.
You do not need command-line experience to begin. The course uses a small set of commands repeatedly and explains each new one when it becomes useful. Your first task is much smaller: get to a prompt and make the computer answer you.
Choose your setup
There are two routes to the same course tools. The browser workspace runs Ubuntu 24.04 in your browser, with the tools already installed and your home folder kept between sessions. It needs a verified sign-in and lab access. Your own terminal runs Ubuntu 24.04 or macOS with Homebrew. You install the tools once, your files stay on your computer, and every lesson and lab works.
- Where it runs
- Ubuntu 24.04 in your browser
- Course tools
- Already installed
- Your files
- Home folder kept between sessions
- What you need
- Sign-in and lab access
Nothing to install
- Where it runs
- Ubuntu 24.04 or macOS with Homebrew
- Course tools
- Installed once
- Your files
- Stay on your computer
- What you need
- Permission to install software
Every lesson and lab works
The browser workspace is the quickest way to start and needs no installation. Your own terminal is always free and supports every lab. A few later labs use direct network connections that the workspace does not permit, so if you cannot use your own terminal, you will need to skip those marked steps.
For your own computer, use Your computer when the choice appears below: Ubuntu 24.04 covers Windows with WSL and Linux, while macOS needs version 14 or later with Homebrew. The page remembers your choice and shows only that route. On a lab page, the same choice also offers Browser workspace when your account has access.
Optional detail: workspace time, files and network limits
The workspace is free during the beta and is part of paid lab access after it. Your own terminal remains free. Workspace sessions can last 60 minutes, with up to 240 minutes each day. Files in your home folder are saved when the workspace stops and restored next time.
The workspace can send web requests to the course services and lab downloads, but it cannot make unrestricted connections to the internet. That is why a few DNSThe Domain Name System, the internet's lookup service that turns a domain such as photos.example into the address of the computer serving it. Whoever controls a name's DNS records controls where that name points., certificateA signed statement that a public key belongs to a name, such as a website's hostname, for stated purposes and a limited period. A certificate authority signs it, so software that trusts the authority can connect the key to the name. and raw-connection steps need your own terminal. It does not open on a phone. The browser workspace guide covers its controls, saved files and every lab limitation.
Your first command
When a terminal is ready, it shows a short line called the prompt, usually ending in $. Your first command will run at that prompt.
Using the browser workspace? Open the browser workspace, read and accept its terms on your first visit, and wait for a prompt that starts with learner@. The tools are already installed, so you can skip the local setup below. On a lab page, choose Browser workspace and Open workspace instead to put the same terminal beside the steps.
Local setup: open a terminal on your own computer
Ubuntu 24.04 (Windows with WSL, or Linux)
On Windows, Ubuntu runs inside the Windows Subsystem for Linux (WSL), which lets Windows run a real Linux system alongside your usual apps. Install it once:
- Open the Start menu, search for Terminal (on Windows 10, PowerShell), right-click it and choose Run as administrator.
- Run this command. It installs WSL and the exact Ubuntu version the course uses.
wsl --install -d Ubuntu-24.04 - Restart the computer if Windows asks you to.
- Open Ubuntu 24.04 from the Start menu. It opens a command-line window, not a Linux desktop. On its first run, create the Linux username and password it asks for. They belong only to Ubuntu and do not need to match your Windows account.
If Windows says virtualization is not enabled, your computer maker's support page for your model will explain how to enable it in the firmware settings.
On a graphical Linux desktop, open the Terminal application; on most Ubuntu desktops, Ctrl+Alt+T opens it. On a CLI-only Linux system, you are already in the terminal, so continue when you see a prompt.
macOS 14 or later with Homebrew
Open Terminal from Applications, then Utilities, or find it with Spotlight. It is already part of macOS, so you can run the first command before installing anything else.
Everyone continues here. With a prompt ready, type only the command below; do not type the $.
echo HelloPress Enter. The terminal prints Hello, then shows a new prompt. The echo command prints the words you give it. You have made the computer carry out an instruction and return a visible result.
$ echo Hello
Hello
$
- First $
- Ready for a command
- echo Hello
- The command you typed
- Hello
- The output
- Last $
- Ready again
Type only the command. The prompt and output are already on the screen.
Your own prompt will contain more text than the figure and may look different from another computer's. The important part is that a new one appears when the command has finished. If nothing happens, press Enter once. If you see command not found, check the spelling and try again; a mistyped command does not harm the computer.
Copying and pasting commands
You can type course commands or paste them. On Linux and in Windows Terminal, use Ctrl+Shift+V; on macOS, use Cmd+V. In the browser workspace, use your browser's normal paste shortcut. On Windows Terminal, a right-click also pastes.
A command box can hold several lines. Pasting runs them in order, just as if you typed each one and pressed Enter. A line beginning with # is a comment, a note for you that the shell ignores. If the last command is still waiting after the prompt, press Enter to run it. Each line runs whether or not the previous one worked, so stop and read any error before continuing.
Installing the tools
Your first command proves that the terminal works. Now make sure the course tools are available: bash reads commands, curl sends web requests, jq reads JSONA text format for structured information, written as named values inside curly braces. APIs, tokens, and discovery documents all use it., and openssl works with keys and certificates. Later lessons also use dig and nc for network checks and file to identify a file's contents. You do not need to learn those commands now.
The browser workspace already has all of them. Skip to Checking your tools. Do not run apt install there; the workspace is intentionally prepared for you.
Ubuntu 24.04 (Windows with WSL, or Linux)
In your Ubuntu terminal, run these two commands. Ubuntu's package manager, apt, installs software. The first command refreshes its package list and the second installs the course tools.
sudo apt update
sudo apt install -y curl jq openssl dnsutils netcat-openbsd filesudo runs a command as an administrator and asks for the Linux password you created. Nothing appears while you type the password, which is normal. The -y option answers yes when apt asks whether to install. Ubuntu already includes bash. Package names do not always match command names: dnsutils provides dig, and netcat-openbsd provides nc.
macOS 14 or later with Homebrew
- Install Homebrew with the command on its official site, brew.sh. Homebrew is a package manager, a program that installs other programs. When its installer finishes, run the commands in its Next steps message so your terminal can find Homebrew's programs.
- Install the course tools:
The course needs
brew install bash jq openssl@3 curlcurl8.5 or later, and the copy built into macOS can be older. macOS already providesdig,ncandfile. - Tell bash to prefer Homebrew's OpenSSL and curl over the older copies built into macOS. Run this once:
It adds an instruction to
echo 'export PATH="$(brew --prefix openssl@3)/bin:$(brew --prefix curl)/bin:$PATH"' >> ~/.bashrc.bashrc, a settings file bash reads when it starts. You do not need to take the quotes or>>apart yet; the result is that bash looks in Homebrew's folders first. - New Terminal windows on macOS start a different shell called zsh. Start the bash you just installed:
Do this each time you open a new Terminal window for the course.
bash
Checking your tools
Installing a tool does not prove that the terminal will use the copy you just installed. Two checks answer different questions: which copy the shell would run, and which version that copy reports.
Paste this block and read the first line of each answer:
# Ask each tool for its version
bash --version
curl --version
jq --version
openssl version| Tool | Expected |
|---|---|
bash | Version 5.2 or later |
curl | Version 8.5 or later |
jq | Version 1.7 or later |
openssl | OpenSSL 3, not LibreSSL |
Next, ask where the shell finds the remaining tools. command -v prints the location of each program it would run and prints nothing for a name it cannot find:
command -v dig nc fileThree lines mean all three are available. A missing line names no tool directly, so compare the output with the order you supplied: dig, then nc, then file.
On Ubuntu, for example, command -v curl might print /usr/bin/curl, while curl --version starts with curl 8.5.0. Read both answers together. On macOS, an older built-in copy can be found before Homebrew's.
- Command
- command -v curl
- Answer
- /usr/bin/curl
- Establishes
- Which copy the shell would run
- Still to check
- Its version
- Command
- curl --version
- Answer
- curl 8.5.0
- Establishes
- The version that copy reports
- Still to check
- Where it lives
Read both answers together. On macOS, an older built-in copy can be found before Homebrew's.
Ubuntu 24.04 (Windows with WSL, or Linux)
If a command answers command not found, or command -v leaves out a line, run the apt install command again and read any error near the end of its output.
macOS 14 or later with Homebrew
If bash --version shows 3.2, repeat Homebrew's Next steps commands, open a new Terminal window and type bash. If openssl version mentions LibreSSL or curl --version is older than 8.5, repeat the .bashrc step, open a new window, type bash and check again. On Apple silicon, Homebrew's tools live under /opt/homebrew; on an Intel Mac, they live under /usr/local.
In the browser workspace, every tool is already installed, so each answer should match. If one does not, report it on the Support page and use your own terminal meanwhile.
You are ready when all four versions meet the table and all three location checks print a line. The terminal can now run the course examples against the tools you just verified.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Install your tools and send your first requestConfirm every tool version and which copy your shell runs, create your lab key, and send your first requests to the course practice service.