Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is the bash history cheat sheet. It summarizes everything there is to know about working efficiently with command line history in bash.
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bash-history-cheat-sheet.pdf
bash-history-cheat-sheet.tex
bash-history-cheat-sheet.txt
readme.txt

readme.txt

This is the bash history cheat sheet. It summarizes everything there is to
know about working efficiently with command line history in bash.

It was created by Peteris Krumins (peter@catonmat.net).
His blog is at http://www.catonmat.net  --  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
"The Definitive Guide to Bash Command Line History". This article can be read
on my website at the following address:

http://www.catonmat.net/blog/the-definitive-guide-to-bash-command-line-history/

This cheat sheet is the 3rd in the series of working efficiently on the
command line.

The first was Bash Emacs Editing Mode Cheat Sheet:
http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-sheet/

And the second was Bash Vi Editing Mode Cheat Sheet:
http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet/

------------------------------------------------------------------------------

The bash history cheat sheet contains the following topics:

    * Bash in emacs mode history keyboard shortcuts.
    * Bash in vi mode history keyboard shortcuts.
    * History behavior modification via shell variables.
    * History behavior modification via shopt command.
    * History expansion.
    * Event designators.
    * Word designators.
    * Word designator modifiers.
    * History expansion examples.

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

    .txt: http://www.catonmat.net/download/bash-history-cheat-sheet.txt
    .pdf: http://www.catonmat.net/download/bash-history-cheat-sheet.pdf
    .tex: http://www.catonmat.net/download/bash-history-cheat-sheet.tex

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

    $ pdflatex bash-history-cheat-sheet.tex

This will produce bash-history-cheat-sheet.pdf.

------------------------------------------------------------------------------


Have fun! This cheat sheet should make you much more productive on the
command line. :)


Sincerely,
Peteris Krumins
http://www.catonmat.net

Something went wrong with that request. Please try again.