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