explaingit

0nn0/terminal-mac-cheatsheet

7,389Audience · developerComplexity · 1/5Setup · easy

TLDR

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.

Mindmap

mindmap
  root((Terminal Cheatsheet))
    Topics
      Keyboard shortcuts
      File navigation
      File management
      Command history
    Features
      Multi-language
      No install needed
      Git companion
    Audience
      Mac beginners
      Developers
    Format
      Markdown tables
      Quick reference
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Look up the keyboard shortcut to jump to the start or end of a command line in Mac Terminal.

USE CASE 2

Find the correct command for copying, moving, or deleting files from the Mac Terminal.

USE CASE 3

Learn how to chain commands together with pipes and review command history in the shell.

USE CASE 4

Share a quick Terminal reference with a teammate who is new to using the Mac command line.

Tech stack

Markdown

Getting it running

Difficulty · easy Time to first run · 5min
No license information mentioned in the explanation.

In plain English

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.

Copy-paste prompts

Prompt 1
I keep forgetting Terminal shortcuts on my Mac. Teach me the 10 most useful keyboard shortcuts from the terminal-mac-cheatsheet so I can memorize them.
Prompt 2
How do I search through my Terminal command history on a Mac? Show me the shortcut and the grep command approach.
Prompt 3
I want to pipe the output of a command into another command on Mac Terminal. Show me a real example using commands from the cheatsheet.
Prompt 4
What's the difference between the man command and the whatis command when looking up Terminal commands on a Mac?
Open on GitHub → Explain another repo

← 0nn0 on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.