Bash Cheat Sheet -- Bash History Cheat Sheet

1,895 views

Published on

Made at http://www.catonmat.net

This cheat sheet includes history editing keyboard shortcuts (emacs and vi mode), history expansion summary - event designators, word designators and modifiers, shell special variables and `shopt’ options to modify history behavior, examples.

Visit http://www.catonmat.net for more cheat sheets!

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,895
On SlideShare
0
From Embeds
0
Number of Embeds
61
Actions
Shares
0
Downloads
50
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Bash Cheat Sheet -- Bash History Cheat Sheet

  1. 1. Bash History Cheat Sheet Emacs and Vi history editing keyboard shortcuts: Shortcut Description Emacs Mode Shortcuts: CTRL-p Fetch the previous command from the history list. CTRL-n Fetch the next command from the history list. CTRL-r Search history backward (incremental search). CTRL-s Search history forward (incremental search). Meta-p Search backward using non-incremental search. Meta-n Search forward using non-incremental search. Meta- Move to the first line in the history. Meta-> Move to the end of the history list. Vi Mode Shortcuts: k Fetch the previous command from the history list. j Fetch the next command from the history list. /string or CTRL-r Search history backward for a command matching st

×