Bash (Linux)

Editing

Swap Last Two Words Before Cursor

Esc + T

All hotkeys for Bash (Linux)

Navigation
Go to Beginning of Line

Home / Ctrl + A

Navigation
Go to End of Line

Ctrl + E / End

Navigation
Forward one character

Ctrl + F

Navigation
Backward ine character

Ctrl + B

Navigation
Toggle between start of line and cursor current position

Ctrl + XX

Navigation
Previous Command

Ctrl + P / Up Arrow

Navigation
Next Arrow

Ctrl + N / Down Arrow

Navigation
Back one word

Alt + B

Navigation
Forward one word

Alt + F

Editing
Clear Screen

Ctrl + L

Editing
Delete Character Under Cursor

Ctrl + D

Editing
Delete Character From Left

Ctrl + H

Editing
Delete Word before Cursor

Alt + Del

Editing
Delete Word After Cursor

Alt + D

Editing
Cut Word Before Cursor to Clipboard

Ctrl + W

Editing
Cut Line After Cursor to Clipboard

Ctrl + K

Editing
Cut Line Before Cursor to Clipboard

Ctrl + U

Editing
Swap Current Word with Previous

Alt + T

Editing
Swap Last Character before Cursor

Ctrl + T

Editing
Swap Last Two Words Before Cursor

Esc + T

Editing
Paste Last Thing to be Cut

Ctrl + Y

Editing
Undo

Ctrl + _

Editing
Upper Capitalize Every Character form Cursor

Alt + U

Editing
Lower The Case Every Character Form Cursor

Alt + L

Editing
Capitalize Character Under Cursor and Move to End of the Word

Alt + C

Editing
Cancel Changes and Put Back the Line

Alt + R

Editing
Tab

Ctrl + I

Editing
NewLine

Ctrl + J

Editing
Enter

Ctrl + M

Editing
Escape

Ctrl + [

Control Character
^@

Ctrl + 2

Control Character
^Escape

Ctrl + 3

Control Character
^\

Ctrl + 4

Control Character
^

Ctrl + 5

Control Character
^^

Ctrl + 6

Control Character
^_Undo

Ctrl + 7

Control Character
^? Backward Delete Char

Ctrl + 8

Control Character
Display Sequence for Enter Key

Ctrl + V

History
Recall Last Command

Ctrl + R

History
Previous Command in History

Ctrl + P

History
Next Command in History

Ctrl + N

History
Go back to Next Most Recent Command

Ctrl + S

History
Execute Command found via Ctrl+R/Ctrl+S

Ctrl + O

History
Escape from History Searching Mode

Ctrl + G

History
Repeat Last Command

!!

History
Run Last Commnd Starting with abc

!abc

History
Print last Command starting with abc

!abc:p

History
Last Argument of Previous Command

!$

History
Last Argument of Previous Command

Alt + .

History
All Arguments of Previous Command

!*

History
Run Previous Command,replacing abc with def

^abc^def

Process Controls
Interrupt/Kill Whatever you are running

Ctrl + C

Process Controls
Clear Screen

Ctrl + L

Process Controls
Stop Output to Screen

Ctrl + S

Process Controls
Allow Output to Screen

Ctrl + Q

Process Controls
Send an EOF Marker

Ctrl + D

Process Controls
Send the signal SIGTSTP to Current Task

Ctrl + Z

Emacs Mode/Vi Mode
Set Vi Mode

$set -o vi

Emacs Mode/Vi Mode
Set Emacs Mode

$set -o emacs

Similar combinations for other applications


Putty (Windows)
Swap the last two words before the cursor
16 Shortcuts for Putty (Windows)

Esc + T


Bash (Unix shell)
Swap the last to words before the cursor
Correcting text

Esc + T


PuTTY
Swap the last two words before the cursor
Ctrl key bouund

Esc + T