Why didn’t I find this sooner?
To re-run the last command in terminal use
!!
which becomes _extremely_ useful, if you forgot you needed root access
sudo !!
(read: sudo damnit! 😉 )
Why didn’t I find this sooner?
To re-run the last command in terminal use
!!
which becomes _extremely_ useful, if you forgot you needed root access
sudo !!
(read: sudo damnit! 😉 )
Another useful trick I stumbled upon…
Make a quick webserver from any directory:
python -m SimpleHTTPServer 8000