Command line snippet of the week: 49
3rd of December, 2009
Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere, try this command (requires Python):
alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
Just run “webshare” and the current directory and everything beneath it will be served from a new web server listening on port 8000. When you are finished, just hit control-c to close the webserver.

