0% found this document useful (0 votes)
23 views1 page

Citguy bash-shortcutsDD

The document provides a cheat sheet with Bash keyboard shortcuts for movement, command control, cutting/pasting/deleting text, command manipulation, command recall, and bang (!) commands. The shortcuts allow efficient navigation and editing of commands in the Bash shell.

Uploaded by

johnson wong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

Citguy bash-shortcutsDD

The document provides a cheat sheet with Bash keyboard shortcuts for movement, command control, cutting/pasting/deleting text, command manipulation, command recall, and bang (!) commands. The shortcuts allow efficient navigation and editing of commands in the Bash shell.

Uploaded by

johnson wong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

bash Shortcuts Cheat Sheet

by Ryan Johnson (CITguy) via cheatography.com/138/cs/832/

bash - Movement bash - Command Control bash - Cut/Pa​ste​/Delete

Ctrl + a Ctrl + l Ctrl + u

go to the start of the command line clear screen from cursor, delete to start of line

Ctrl + e Ctrl + s Ctrl + k

go to the end of the command line stops screen output (for verbose from cursor, delete to end of line
commands)
Ctrl + xx Ctrl + w
Ctrl + q
(toggle) beginning of line/c​ursor position from cursor, delete to start of word
allow screen output (undo Ctrl+S)
Alt + b Alt + d
Ctrl + c
previous word begin from cursor, delete to end of word
terminate command
Alt + f Ctrl + d
Ctrl + z
next word end delete character under cursor
suspend comman​d/send to background
Ctrl + f Ctrl + h
(use fg to bring forward)
forward one character delete character before cursor

Ctrl + b bash - Command Recall Ctrl + y

back one character Ctrl + r after cursor, paste cut/de​leted text

search history backward


bash - Manipu​lation bash - Bang (!) Commands
Ctrl + g
Alt + c !!
escape from history search mode
from cursor, capitalize to end of word run last command
Ctrl + p
Alt + u !foo
previous command in history (walk back)
from cursor, uppercase to end of word run most recent command starting with 'foo'
Ctrl + n
Alt + l !foo:p
next command in history (walk forward)
from cursor, lowercase to end of word print most recent command starting with 'foo'
Alt + .
Alt + t !$
last word of previous command
transpose word with previous word last word of previous command (Alt + .)

Ctrl + t !*

transpose character with previous character previous command without last argument

!*:p

print previous command without last


argument

By Ryan Johnson (CITguy) Published 11th February, 2013. Sponsored by CrosswordCheats.com


cheatography.com/citguy/ Last updated 26th January, 2017. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com

You might also like