terminal-mac-cheatsheet
List of my most used commands and shortcuts in the terminal for Mac
A reference cheatsheet of Mac Terminal keyboard shortcuts and commands for navigating files, editing the command line, and chaining shell commands, available in a dozen languages.
This repository is a reference document for people using the Terminal application on a Mac. The README itself is the entire product: a set of tables listing common keyboard shortcuts and commands, organized into clearly labeled sections. There is nothing to install or run.
The cheatsheet covers keyboard shortcuts for moving around the command line (jumping to the start or end of a line, cutting text, undoing the last action), core commands for navigating the file system (changing directories, listing files), and file management operations like copying, moving, renaming, and deleting files. It also covers chaining commands together, piping the output of one command into another, searching through files with grep and through the Mac file system with Spotlight's mdfind command, and reviewing or re-running commands from history.
A help section lists several ways to look up what any command does -- including the man command, which pulls up a full manual page for any installed tool, and whatis, which gives a one-line summary.
The document is available in more than a dozen languages, including Spanish, French, Polish, Portuguese, Vietnamese, Turkish, Russian, Korean, Chinese, Japanese, and Indonesian. Translations are maintained by volunteers, so the content between language versions may vary.
The author also links to a companion cheatsheet covering Git commands, housed in a separate repository. This cheatsheet is a practical bookmark rather than a tutorial; it assumes the reader already knows roughly what they are looking for and just needs a quick reminder of the exact syntax.
Where it fits
- Look up the keyboard shortcut to jump to the start or end of a command line in Mac Terminal.
- Find the correct command for copying, moving, or deleting files from the Mac Terminal.
- Learn how to chain commands together with pipes and review command history in the shell.
- Share a quick Terminal reference with a teammate who is new to using the Mac command line.