The path
⌨️ Terminal TricksLesson 10 of 30 5 min 30 XP

❓Getting unstuck: help, history and shortcuts

How to ask the computer for help, and the shortcuts that save your fingers.

Nobody memorises every command. The trick is knowing how to look things up, and how to stop a mistake quickly.

Commands in this lesson

man lsOpen the manual page for ls
ls — list what is inside a folder...
ls --helpA shorter, friendlier summary
Usage: ls [OPTION]...
historyEvery command you typed this session
1 ls
2 cd notes
clearWipe the screen

Shortcuts worth learning today

  • Tab — finishes a file or folder name for you
  • ↑ and ↓ — walk through the commands you already typed
  • Ctrl + C — stop whatever is running right now
  • Ctrl + L — clear the screen (same as clear)
  • Ctrl + A / Ctrl + E — jump to the start / end of the line

💡 Think of it like this

Ctrl + C is the emergency stop button. It never deletes anything, it just tells the current command to quit.

🔬 The grown-up version

man pages open in a pager: press q to quit, /word to search, n for the next hit. For a quick refresher, most tools also support --help.

Now you try

This terminal is pretend, so you cannot break anything. Tap a chip or type a command yourself.

tux — bashpractice

Try the commands from this lesson. Type one and press Enter, or tap a chip below.

penguin@tux:~$
try

Quick check

You started a command that will not stop. What do you press?

Which key finishes a file name for you?

Finished this one?

Mark it done to collect 30 XP and keep your streak growing.