Zsh Keyboard Shortcuts

Complete Zsh keyboard shortcuts reference — 20 shortcuts across 3 categories. Quick reference cheat sheet for Windows & Mac.

About Zsh

Zsh is the default shell on macOS and a favorite on Linux, with a powerful line editor (ZLE) whose Emacs-style shortcuts make editing commands far faster than arrow keys alone. Learning its keyboard shortcuts can dramatically speed up your workflow — studies show shortcut users save an average of 8 days per year compared to mouse-only users.

This page covers all 20 Zsh shortcuts across 3 categories: Cursor Movement (6), Editing (7), History & Completion (7). Each shortcut includes a description to help you understand when and how to use it effectively.

Cursor Movement (6)

ShortcutAction
Ctrl + AStart of line
Ctrl + EEnd of line
Alt + FForward one word
Alt + BBack one word
Ctrl + FForward one char
Ctrl + BBack one char

Editing (7)

ShortcutAction
Ctrl + UKill whole line
Ctrl + KKill to end
Ctrl + WDelete word before
Alt + DDelete word after
Ctrl + YYank
Ctrl + _Undo
Alt + QPush line

History & Completion (7)

ShortcutAction
Ctrl + RSearch history
Ctrl + PPrevious command
Ctrl + NNext command
Alt + .Insert last argument
TabComplete
Ctrl + LClear screen
Ctrl + DExit / delete char
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Mastering Zsh Shortcuts

Zsh's 20 shortcuts on this page are organized into 3 categories: Cursor Movement (6), Editing (7), History & Completion (7). Editing is the largest group with 7 shortcuts — a good place to focus first if you're building muscle memory from scratch.

A few of these aren't Zsh-specific — they're shared across tools: Ctrl + A (Start of line, also in Windows); Ctrl + E (End of line, also in Chrome); Alt + F (Forward one word, also in Chrome). Learning them here pays off well beyond Zsh itself.

New to Zsh? Start with Cursor Movement above — it's usually where the shortcuts you'll reach for constantly live. Once those feel automatic, work through History & Completion to round out your workflow.

Want this on paper? The printable cheat sheet turns these 20 shortcuts into a one-page PDF you can pin above your desk. Prefer to learn by doing? Shortcut Speedrun turns memorization into a timed typing challenge with a global leaderboard, so you find out which Zsh shortcuts you actually remember under pressure.

Frequently Asked Questions

What are the most useful Zsh keyboard shortcuts?

The most essential Zsh shortcuts are: Ctrl + A (Start of line), Ctrl + E (End of line), Alt + F (Forward one word). These cover the most frequent actions and can significantly speed up your workflow.

How many keyboard shortcuts does Zsh have?

Zsh has 20 keyboard shortcuts across 3 categories on shortcut-tools.com.

How do I use keyboard shortcuts in Zsh?

Simply press the key combination while Zsh is focused. Most shortcuts work immediately. On Mac, replace Ctrl with Cmd and Alt with Option for most shortcuts.

What is the Zsh shortcut for start of line?

The Zsh shortcut for start of line is Ctrl + A.

What Editing shortcuts does Zsh have?

Zsh includes 7 Editing shortcuts, including Ctrl + U (Kill whole line) and Ctrl + K (Kill to end). See the full list in the Editing section above.

What's the fastest way to learn all Zsh shortcuts?

Print the Zsh cheat sheet and keep it next to your keyboard for the first week, then switch to active recall: open Shortcut Speedrun and practice Zsh shortcuts against the clock until they're automatic.

Can I combine Zsh shortcuts with other tools?

Yes — use My Stack to combine Zsh shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Do Zsh shortcuts differ between Windows and Mac?

Most do not — the underlying key is the same, but Zsh (like most software) maps Ctrl on Windows/Linux to Cmd on Mac for standard operations. Where a shortcut is platform-specific, this page notes the Mac variant next to the Windows one.

💡 Pro Tips for Zsh Users

Start with the essentials: Learn Ctrl + A (Start of line) and Ctrl + E (End of line) first — these are the most commonly used.

Practice daily: Pick 2–3 new shortcuts each day and consciously use them instead of the mouse. Within a week, they become muscle memory.

Print this cheat sheet: Keep a reference nearby until shortcuts become automatic. Focus on the Editing category first.

CLI tip: Create shell aliases for the commands you use most. Combine them with these shortcuts for maximum efficiency.

Related Shortcut Pages

Bash / Shell Fish Shell Starship Prompt tmux fzf Vim

Search 4,400+ shortcuts across 270 platforms

Explore All Platforms Practice Shortcuts