Cursor
control + a | Move to the start of the current line |
control + b | Move backward a character |
control + e | Move to the end of the current line |
control + f | Move forward a character |
control + n | Move ‘forward’ through the history list, fetching the previous command |
control + p | Move ‘back’ through the history list, fetching the previous command |
alt + b | Move back to the start of the current or previous word |
alt + f | Move forward to the end of the next word |
Processes
control + c | Kill the command you just ran |
control + l | Clear the screen |
control + d | Send an EOF marker, unless disabled by an option, this will close the current shell (EXIT) |
Editing
control + l | Clear the screen and redraw the current line, leaving the current line at the top of the screen |
alt + delete | Delete the Word behind the cursor position |
alt + d | Delete the word after the cursor position |
control + d | Delete character under the cursor |
control + h | Delete character in front of the cursor |
control + w | Cut the word behind the cursor |
control + k | Cut the line in front of the the cursor |
control + u | Cut everything before the cursor |
alt + t | Drag the word before point past the word after point, moving point past that word as well |
control + t | Drag the character before the cursor forward over the character at the cursor, moving the cursor forward as well |
escape + t | Swap the last two words before the cursor |
control + y | Paste the last cut string |
alt + c | Capitalize the character under the cursor and move to the end of the word |
alt + r | Undo all changes made to this line |
control + _ | Undo |
tab | Auto-complete the name of files and directories |
History
control + r | Search backward starting at the current line and moving 'up' through the history as necessary |
control + p | Move back through the history list, fetching the previous command |
control + n | Move forward through the history list, fetching the next command |
control + s | Search forward starting at the current line and moving ‘down’ through the history as necessary |
control + o | Execute the current line |
control + g | Abort the current command and play the alert sound |