streak 0d sign in / up

Command Line

Hands-on labs for every Command Line lesson: navigate, create, copy, move, find and delete files on a real Linux machine.

1 Guided Lab The Shell Run your first commands, see how quoting works, and reuse commands from history. beginner · 10 min · 4 steps Start Lab → 2 Guided Lab Find Your Place with pwd Print the current directory, follow paths down the tree, and see the real path behind a shortcut. beginner · 10 min · 3 steps Start Lab → 3 Guided Lab Move Around with cd Move with relative and absolute paths, climb up with .., and use the cd shortcuts. beginner · 15 min · 4 steps Start Lab → 4 Guided Lab List Files with ls List files here and elsewhere, reveal hidden files, read the long listing, and sort the output. beginner · 15 min · 5 steps Start Lab → 5 Guided Lab Create Files and Set Times with touch Create empty files, refresh timestamps, set an exact time, and avoid creating files by accident. beginner · 15 min · 4 steps Start Lab → 6 Guided Lab Identify Files with file Find out what a file really contains, whatever its name says. beginner · 10 min · 3 steps Start Lab → 7 Guided Lab Read and Join Files with cat Print files, join them into a new file, write text from the keyboard, and format the output. beginner · 15 min · 4 steps Start Lab → 8 Guided Lab Page Through Files with less Open a long file in less, move around, show line numbers, search, and page through command output. beginner · 15 min · 4 steps Start Lab → 9 Guided Lab Reuse Commands with history List your command history, rerun earlier commands, and search history as you type. beginner · 10 min · 4 steps Start Lab → 10 Guided Lab Copy Files with cp Copy single files, copy and rename, copy many files with wildcards, and copy whole directories. beginner · 15 min · 4 steps Start Lab → 11 Guided Lab Move and Rename with mv Rename files and directories, move several files at once, and move with wildcards. beginner · 15 min · 4 steps Start Lab → 12 Guided Lab Make Directories with mkdir Create directories one at a time, several at once, whole paths, and with set permissions. beginner · 10 min · 4 steps Start Lab → 13 Guided Lab Remove Files with rm Delete files, preview wildcards before deleting, ask for confirmation, and remove directories. beginner · 15 min · 4 steps Start Lab → 14 Guided Lab Search for Files with find Find files by name, type, size and age, and act on what you find. beginner · 15 min · 3 steps Start Lab → 15 Guided Lab Get Help with help and --help Get help for shell builtins, read a program's usage summary, and find out what a name really is. beginner · 10 min · 3 steps Start Lab → 16 Guided Lab Read the Manual with man Open manual pages, search inside them for an answer, and choose a manual section. beginner · 15 min · 3 steps Start Lab → 17 Guided Lab Quick Descriptions with whatis Get one-line descriptions with whatis and search descriptions with apropos. beginner · 10 min · 2 steps Start Lab → 18 Guided Lab Shortcuts with alias Create aliases, keep them across sessions, inspect them, and bypass or remove them. beginner · 15 min · 4 steps Start Lab → 19 Guided Lab Exit Shells and Exit Codes See how every command reports success or failure, and leave a shell cleanly. beginner · 10 min · 3 steps Start Lab → 20 Challenge Challenge: Tidy the Downloads Folder Use everything from this course to sort out a messy Downloads folder. beginner · 20 min · 1 step Start Lab →