A Few Quick Terminal Tips


Run the Same Command Again

$ !! # Run last executed command
$ sudo !! # Run last execute command as sudo
$ !<word> # Run last command starting with a specific word/character

See A List of All The Commands You’ve Entered

$ history

Write ASCII art banners

$ banner -w <width_in_pixels> <your_message_here>

Place cursor anywhere in your terminal for current command

Hold option and click where you need your cursor. No need to use arrow keys or option + arrow key to navigate

Source: https://twitter.com/i/status/1264140864751878144