Live data from Hacker News

Web server in one line of bash

razvantudorica.com

1–10 of 69 posts

Re: Web server in one line of bash

#7

If you have python, then these are really useful, just serves up the current directory. Python 2.x: python -m SimpleHTTPServer Python 3.x: python -m http.server 8000

Easier to remember, plus Python is probably more likely to exist on a given machine than netcat.

Re: Web server in one line of bash

#8

If you have python, then these are really useful, just serves up the current directory. Python 2.x: python -m SimpleHTTPServer Python 3.x: python -m http.server 8000

This is still my go-to solution, though I couldn't help but to share when I found the other solution.
Post reply on HN