Redo last command as (g)root

Whoops I meant root or did I? It’s less funny is you don’t get the reference – google it.


Running a command and then finding you need elevated privileges can be a bit annoying but this command below can save your hassle!

# The below is re-run the last command executed but with sudo privs
sudo !!

One step closer to becoming a command-line-ninja!