Display the current directory as a webpage in Linux

By | January 17, 2011

Do you want to quickly serve a directory to your friends over the web or LAN? There are plenty of applications out there that let you do this, but in Linux all you really need is Python installed.
Do a

python -m SimpleHTTPServer

in the directory you wish to share, then access http://127.0.0.1:8000 in your browser.

Leave a Reply

Your email address will not be published. Required fields are marked *