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


Delete to end of line: Ctrl K

Delete to beginning of line: `Ctrl U`

My mnemonic? Brexit – the UK leaves Europe…

Leave a Reply

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