Shell shortcuts:

Ctrl + A / Ctrl + E - Move the cursor to the start/end of the line.

Ctrl + U - Delete all characters before the cursor, a great alternative to spamming backspace whenever you mistype your password.

Ctrl + R - Search through your command history.

Ctrl + Z - Suspend the current application and return to the terminal shell. It is useful when editing files with Vim. To resume application type fg .

ALT + . - Inserts the last argument from the previous command. The other way is to use the variable $_ in your command. Example: mkdir test && cd $_ .