List of One-liner Web Servers
Python 2.x $ python -m SimpleHTTPServer 8000 Python 3.x $ python -m http.server 8000 Twisted (Python) $ twistd -n web -p 8000 --path . Or: $ python -c 'from twisted.web.server import Site; from twisted.web.static import File; from twisted.internet import reactor; reactor.listenTCP(8000, Site(File("."))); reactor.run()' Depends on Twisted. Ruby $ ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd).start' Credit: Barking Iguana Ruby 1.9.2+ $ ruby -run -ehttpd . -p8000 Credit: nobu adsf (Ruby) $ gem install adsf # install dependency $ adsf -p 8000 Credit: twome No directory listings. Sinatra (Ruby) $ gem install sinatra # install dependency $ ruby -rsinatra -e'set :public_folder, "."; set :port, 8000' No directory listings. Perl $ cpan HTTP::Server::Brick # install dependency $ perl -MHTTP::Server::Brick -e '$s=HTTP::Server::Brick->new(port=>8000); $s->mo...