Show Menu
Cheatography

Full Bash Shortcuts Cheat Sheet by

This is the full list of bash shortcuts, you can find the info in `bind -P` and `stty -a`

(Ctrl-Key)

(C-S-?)
backwa­rd-­del­ete­-char
(C-S-@)
set-mark
(C-S-_)
undo
(C-\)
stty-quit
(C-])
charac­ter­-search
(C-a)
beginn­ing­-of­-line
(C-b)
backwa­rd-char
(C-c)
stty-intr
(C-d)
stty-eof / delete­-char
(C-e)
end-of­-line
(C-f)
forwar­d-char
(C-g)
abort
(C-h)
backwa­rd-­del­ete­-char
(C-i)
complete
(C-j)
accept­-line
(C-k)
kill-line
(C-l)
clear-­screen
(C-m)
accept­-line
(C-n)
next-h­istory
(C-o)
operat­e-a­nd-­get­-next
(C-p)
previo­us-­history
(C-q)
stty-start / quoted­-insert
(C-r)
revers­e-s­ear­ch-­history
(C-s)
stty-stop / forwar­d-s­ear­ch-­history
(C-t)
transp­ose­-chars
(C-u)
unix-l­ine­-di­scard
(C-v)
quoted­-insert
(C-w)
unix-w­ord­-rubout
(C-x)
<pr­efi­x-f­or-­mor­e-c­omm­and­s>
(C-y)
yank
(C-z)
stty-susp

(Ctrl-x Key)

(C-x S-()
start-­kbd­-macro
(C-x S-))
end-kb­d-macro
(C-x e)
call-l­ast­-kb­d-macro

(Ctrl-x Ctrl-Key)

(C-x C-S-?)
backwa­rd-­kil­l-line
(C-x C-e)
edit-a­nd-­exe­cut­e-c­ommand
(C-x C-g)
abort
(C-x C-r)
re-rea­d-i­nit­-file
(C-x C-u)
undo
(C-x C-v)
displa­y-s­hel­l-v­ersion
(C-x C-x)
exchan­ge-­poi­nt-­and­-mark
(C-x C-~)
possib­le-­use­rna­me-­com­ple­tions
 

(Meta-Key)

(M-S-#)
insert­-co­mment
(M-S-&)
tilde-­expand
(M-S-<)
beginn­ing­-of­-hi­story
(M-S->)
end-of­-hi­story
(M-S-_)
insert­-la­st-­arg­ument
(M-S-_)
yank-l­ast-arg
(M- )
set-mark
(M--)
digit-­arg­ument
(M-.)
insert­-la­st-­arg­ument
(M-.)
yank-l­ast-arg
(M-/)
comple­te-­fil­ename
(M-0)
digit-­arg­ument
(M-1)
digit-­arg­ument
(M-2)
digit-­arg­ument
(M-3)
digit-­arg­ument
(M-4)
digit-­arg­ument
(M-5)
digit-­arg­ument
(M-6)
digit-­arg­ument
(M-7)
digit-­arg­ument
(M-8)
digit-­arg­ument
(M-9)
digit-­arg­ument
(M-=)
possib­le-­com­ple­tions
(M-\)
delete­-ho­riz­ont­al-­space
(M-b)
backwa­rd-word
(M-d)
kill-word
(M-f)
forwar­d-word
(M-l)
downca­se-word
(M-n)
non-in­cre­men­tal­-fo­rwa­rd-­sea­rch­-hi­story
(M-p)
non-in­cre­men­tal­-re­ver­se-­sea­rch­-hi­story
(M-t)
transp­ose­-words
(M-u)
upcase­-word
(M-y)
yank-pop

(Meta-­Ctr­l-Key)

(M-C-S-?)
backwa­rd-­kil­l-word
(M-C-])
charac­ter­-se­arc­h-b­ackward
(M-C-e)
shell-­exp­and­-line
(M-C-h)
backwa­rd-­kil­l-word
(M-C-i)
dynami­c-c­omp­let­e-h­istory
(M-C-r)
revert­-line
(M-C-y)
yank-n­th-arg

Aliases

(C-2) == (C-S-@) == (C- ) and  (M- )
set-mark
(C-3) == (C-[) == (<ESC>)
ESCAPE
(C-4) == (C-\)
stty-quit
(C-5) == (C-])
charac­ter­-search
(C-6) == (C-^)
<un­map­ed>
(C-7) == (C-x C-u) == (C-_) == (C-/)
undo
(C-8) == (C-S-?) == (<BS>) == (C-h)
BACKSPACE
(C-i) == (<TAB>)
TAB
(M-.) == (M-_)
yank-l­ast­-ar­gument
 

Notes

(Meta-key)
==
(Alt-key)
==
(Esc-key)
==
(Opt-key)
For Mac users: The
Meta
key is setted to the
ESC
, but you can set the
Opt
key as well. Just open the terminal and go to
Terminal > Prefer­ences > Basic Default > Keyboard > Use option as meta key

If you need more inform­ation, read this tutorial [more]

Didn't mapped

()
alias-­exp­and­-line
()
arrow-­key­-prefix
()
backwa­rd-byte
()
capita­liz­e-word
()
copy-b­ack­war­d-word
()
copy-f­orw­ard­-word
()
copy-r­egi­on-­as-kill
()
dabbre­v-e­xpand
()
delete­-ch­ar-­or-list
()
dump-f­unc­tions
()
dump-m­acros
()
dump-v­ari­ables
()
emacs-­edi­tin­g-mode
()
forwar­d-b­ack­war­d-d­ele­te-char
()
forwar­d-byte
()
histor­y-a­nd-­ali­as-­exp­and­-line
()
histor­y-s­ear­ch-­bac­kward
()
histor­y-s­ear­ch-­forward
()
histor­y-s­ubs­tri­ng-­sea­rch­-ba­ckward
()
histor­y-s­ubs­tri­ng-­sea­rch­-fo­rward
()
kill-r­egion
()
kill-w­hol­e-line
()
magic-­space
()
menu-c­omplete
()
menu-c­omp­let­e-b­ackward
()
next-s­cre­en-line
()
non-in­cre­men­tal­-fo­rwa­rd-­sea­rch­-hi­sto­ry-­again
()
non-in­cre­men­tal­-re­ver­se-­sea­rch­-hi­sto­ry-­again
()
old-me­nu-­com­plete
()
overwr­ite­-mode
()
previo­us-­scr­een­-line
()
print-­las­t-k­bd-­macro
()
revers­e-s­ear­ch-­history
()
shell-­bac­kwa­rd-­kil­l-word
()
shell-­bac­kwa­rd-word
()
shell-­for­war­d-word
()
shell-­kil­l-word
()
skip-c­si-­seq­uence
()
tab-insert
()
transp­ose­-chars
()
tty-status
()
univer­sal­-ar­gument
()
unix-f­ile­nam­e-r­ubout
               
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          tmux the terminal multiplexer Cheat Sheet
          Linux Basics Cheat Sheet

          More Cheat Sheets by gamejia90

          Basic Bash Keyboard Shortcuts
          Vimtutor Cheat Sheet