Terminal Mastery

13 lessons · about 3 hours · free

Learn the terminal by using it.

Every lesson puts a practice terminal next to the instructions. You type every command yourself, and it checks your work as you go. Nothing you do can touch your real computer.

Start with Lesson 1
0 of 13 lessons done

Getting started

2 lessons · 22 min
  1. 01Meet the terminalRead the prompt, run your first commands, and open the terminal on your own computer.whoamidateechoclearCtrl+C10 min
  2. 02Moving aroundFind out where you are, see what’s around you, and get anywhere on the system.pwdlscdTab12 min

Working with files

4 lessons · 46 min
  1. 03Make files and foldersCreate folders and files, and put words in them, without leaving the terminal.mkdirtouchcat>>>12 min
  2. 04Copy, move and deleteRearrange your files with confidence, and delete them without regret.cpmvrmrmdir12 min
  3. 05Read filesLook inside files of any size: from the top, from the bottom, or by the numbers.catheadtailwcless10 min
  4. 06Match many files at onceUse wildcards to work with whole groups of files in a single command.*?[ ]12 min

Power tools

2 lessons · 28 min
  1. 07Connect commandsChain small commands into pipelines that answer real questions.|>sortuniq14 min
  2. 08Find anythingSearch inside files with grep, and find files by name with find.grepfind14 min

Your system

4 lessons · 52 min
  1. 09Permissions and scriptsRead who can do what to a file, run your own scripts, and keep private files private.ls -lchmod./script.shsudo14 min
  2. 10Edit files with nanoOpen, change and save any file without leaving the terminal.nanoCtrl+OCtrl+XCtrl+K / Ctrl+U12 min
  3. 11What’s running on your computerSee every running program, stop the ones that are stuck, and find what’s filling your disk.ps auxkilltopdf -hdu -sh14 min
  4. 12Work fasterReuse what you’ve typed, make your own shortcuts, and understand how the shell finds commands.history!!alias$NAMEwhich12 min

Final project

1 lesson · 20 min
  1. 13Final project: clean up a handoffTake over a messy project folder and leave it organised, safe and ready to ship, using everything from the course.ls -lamkdir / mv *grep -r | wc -lnanochmod +x20 min