Bash has two input modes - emacs and vi. This is emacs input/editing mode keyboard shortcut cheat sheet.
Pull request Compare This branch is 2 commits behind pkrumins:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Bourne again shell (bash) has two input editing modes - emacs and vi. This is
emacs editing mode cheat sheet. It lists all the keyboard shortcuts available
in emacs mode. It will make you much more productive in the shell.

It was created by Peteris Krumins (
His blog is at  --  good coders code, great reuse.

The cheat sheet is released under GNU Free Document License.

The cheat sheet was created as supplementary material to my popular article
"Bash Emacs Editing Mode Cheat Sheet". This article can be read on my website
at the following address:

This cheat sheet is the 1st in the series of working efficiently on the
command line.

The second article is "Bash Vi Editing Mode Cheat Sheet":

And the third is "The Definitive Guide to Bash Command Line History":


The emacs editing mode cheat sheet contains the following shortcuts:

    * Commands for moving.
    * Commands for changing text.
    * Killing (copying) and yanking (pasting) text.
    * Creating and playing keyboard macros.
    * Commands for manipulating command history.
    * Completing commands and filenames.
    * Miscellaneous keyboard shortcuts (such as undo, create mark, etc.)

It's available in .txt (ascii), .pdf and latex (.tex) formats. The latest
version of this cheat sheet can always be downloaded here:


To create a new .pdf from latex's .tex, use pdflatex command:

    $ pdflatex readline-emacs-editing-mode-cheat-sheet.tex

This will produce readline-emacs-editing-mode-cheat-sheet.pdf.


Have fun and be more productive on command line.

Peteris Krumins