Bash shortcuts

This avoids having to take your hands off the keyboard to hit the Up arrow to get the last command from the command line (Linux, Mac):

Ctrl P Ctrl J

Ctrl P gets your last command

Ctrl J hits Enter

https://unix.stackexchange.com/a/147575/198669

 

Delete to end of line: Ctrl K

Delete to beginning of line: Ctrl U

My mnemonic? Brexit – the UK leaves Europe…

https://askubuntu.com/questions/269046/bash-delete-from-cursor-till-end-of-line-with-a-keyboard-shortcut

Leave a Reply

Your email address will not be published. Required fields are marked *