terminal tips

Keymap

key func
Ctrl+a Move cursor to start of line
Ctrl+e Move cursor to end of line
Ctrl+b Move back one character
Ctrl+f Move forward one character
Ctrl+d Delete current character
Ctrl+w Cut the last word
Ctrl+k Cut everything after the cursor
Ctrl+y Paste the last deleted command
Ctrl+u Cut everything before the cursor
Ctrl+l Clear the terminal
Ctrl+c Cancel the command
Ctrl+r Search command in history - type the search term
Ctrl+j End the search at current history entry
Ctrl+g Cancel the search and restore original line
Ctrl+n Next command from the History
Ctrl+p previous command from the History
Ctrl+x x Toggle between first and current position
Alt+d Cut word after the cursor
Alt+w Cut word before the cursor
Alt+f Move forward one word
Alt+b Move back one word
Ctrl+_ Undo