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.
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.
Start Lab →
3
Guided Lab
Move Around with cd
Move with relative and absolute paths, climb up with .., and use the cd shortcuts.
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.
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.
Start Lab →
6
Guided Lab
Identify Files with file
Find out what a file really contains, whatever its name says.
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.
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.
Start Lab →
9
Guided Lab
Reuse Commands with history
List your command history, rerun earlier commands, and search history as you type.
Start Lab →
10
Guided Lab
Copy Files with cp
Copy single files, copy and rename, copy many files with wildcards, and copy whole directories.
Start Lab →
11
Guided Lab
Move and Rename with mv
Rename files and directories, move several files at once, and move with wildcards.
Start Lab →
12
Guided Lab
Make Directories with mkdir
Create directories one at a time, several at once, whole paths, and with set permissions.
Start Lab →
13
Guided Lab
Remove Files with rm
Delete files, preview wildcards before deleting, ask for confirmation, and remove directories.
Start Lab →
14
Guided Lab
Search for Files with find
Find files by name, type, size and age, and act on what you find.
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.
Start Lab →
16
Guided Lab
Read the Manual with man
Open manual pages, search inside them for an answer, and choose a manual section.
Start Lab →
17
Guided Lab
Quick Descriptions with whatis
Get one-line descriptions with whatis and search descriptions with apropos.
Start Lab →
18
Guided Lab
Shortcuts with alias
Create aliases, keep them across sessions, inspect them, and bypass or remove them.
Start Lab →
19
Guided Lab
Exit Shells and Exit Codes
See how every command reports success or failure, and leave a shell cleanly.
Start Lab →
20
Challenge
Challenge: Tidy the Downloads Folder
Use everything from this course to sort out a messy Downloads folder.
Start Lab →