Working in a terminal
Opening a terminal, moving around files, connecting commands, and writing a small script.
Start with Setting up your terminal
- Setting up your terminalChoose the browser workspace or your own computer, run your first command, install only the tools your route needs, and verify their versions and locations.
- Terminals and shellsLearn what a terminal and a shell do, how to read a prompt, how the shell splits a line into a command and its arguments, and what an exit status reports.
- Finding your way around files and directoriesLearn how files and directories form a tree, how to find where you are, how to move around with absolute and relative paths, and how to match names with wildcards.
- Reading and changing filesRead files whole or in part, create, copy, move and delete them safely, tell what a file contains regardless of its name, join commands with ;, && and ||, and run a file of commands.
- Connecting commands with pipes and redirectionLearn how standard input, output and error work, redirect them to and from files, write files with here-documents, join commands into pipelines, and read a pipeline's exit status.
- Variables, quoting and the environmentStore values in shell variables, quote them so spaces survive, capture command output, give missing values a default, pass settings to child processes, load settings files with source, and read secrets without showing them.
- Searching and shaping textFind lines with grep and regular expressions, cut out columns, sort and count them, change text with tr and sed, build pipelines one stage at a time, and loop over words and lines when each one needs a decision.
- Writing a small scriptTurn a file of commands into a runnable script with arguments, exit codes, case and functions, stop pasted blocks safely, and use set -euo pipefail and a scratch folder that cleans up after itself.