↑↓ move Enter open Esc close

Cheat sheet · 10 commands

Keyboard shortcuts

The fastest wins on the command line are not commands at all. Tab completion and Ctrl+R history search alone save more typing than any alias you will ever write.

The 3 you will use every day

Tab

Complete a file or command name: nobody types full paths

Ctrl+R

Search your command history as you type (then Enter to run)

Alt+.

Insert the last argument of the previous command

The full sheet

  • Tab Complete a file or command name: nobody types full paths
  • Ctrl+R Search your command history as you type (then Enter to run)
  • Ctrl+C Stop the running command
  • Ctrl+D End of input / log out of the shell
  • Ctrl+Z Suspend the current job (then fg or bg)
  • Ctrl+L Clear the screen (same as clear)
  • Ctrl+AorCtrl+E Jump to the beginning / end of the line
  • Ctrl+WorCtrl+U Delete the previous word / the whole line
  • Alt+. Insert the last argument of the previous command
  • UporDown Walk through previous commands
Practise these for real in the interactive course, or keep every sheet, chapter and fix in one book: The Linux Command Line Handbook.