#5 Command Line Tips #2
In this episode we continue the multipart series with some more of my favorite command line tips including a surprisingly little known cd argument, quickly searching the bash_history, a sudo tip, and how to temporarily start a tiny webserver so we can share files with a single command.
Uploaded on Oct 06, 2009 | 4:25 | Tags: bash cd python
# cd to the last directory visited $ cd - # go to our home directory $ cd # CTRL+R to search through the bash_history as you type. Enter to execute. # execute the last command with sudo $ sudo !! # start a Python HTTP server with webshare $ alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"' $ webshare
If you enjoyed this episode, be sure to check out the newest Technicast on Apache2. All purchases support FOSSCasts.





