#TerminalTuesday
In the spirit of improving other's productivity, here are two console/terminal commands that can speed up your workflow:
Ever type something into your terminal that requires escalated privileges with sudo? Instead of re-typing the whole command, use two bangs as an argument to sudo to execute the last command, this time with sudo privileges.
$ sudo !!
Ever type a long command or string of commands as a one-liner into your terminal but then realized you typed something wrong at the beginning? Use CMD+A or CMD+<left arrow> when in the terminal to go to the beginning of the line. Helpful for laptops that don't have home key. To go to the end of the line again, use CMD+<right arrow> or CMD-E.
# Home
CMD+A / CMD+<
# End
CMD+E / CMD+>
Hopefully this will make you just a little more productive in your terminal.