Python version 3: Serve current directory tree at http://$HOSTNAME:8000/

python -m http.server
In Python version 3, the module was merged into http.server. Gentlemen, change your aliases.
Sample Output
$ python3.1 -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...

36
By: Alanceil
2010-12-17 12:52:45

9 Alternatives + Submit Alt

What Others Think

cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber cfiber fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers fox fiber construfiber fiboverview overview overview steel overview buy polysterfibers cfiber fox fiber construfiber fiboverview overview overview
steelfiber · 17 weeks ago
We are ready to provide the best service for online lottery players at Gotogel.com . From livechat and whatsapp services 24 hours as well as a safe and easy transaction process. To improve the quality of service, we welcome all criticism, suggestions, and input from you. We guarantee 100% confidentiality of your personal data. http://gotogel.net">Gotogel
KayGasaway · 14 weeks and 4 days ago
This live telephone clairvoyance that wants to help you release your immense, unsuspected psychic energy.This clairvoyance by telephone without waiting that we do so that you open up to the world and let the forces of lifeenter you, grow within you . https://voyance-par-telephone-amour.com
KayGasaway · 14 weeks and 3 days ago
This may be a really good hints mainly that will the ones novices at blogosphere, shorter together with complete information… Kudos meant for posting ours. Extremely important look over report. sa gaming
KayGasaway · 14 weeks and 3 days ago
I learn some new stuff from it too, thanks for sharing your information. bitcoin atm Toronto
KayGasaway · 14 weeks and 2 days ago
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. ???? uwin
KayGasaway · 13 weeks and 3 days ago
Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. supcaitlin
KayGasaway · 13 weeks and 2 days ago
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. https://www.918kisspg.com
KayGasaway · 13 weeks and 2 days ago
I’m empowered together with the surpassing plus preachy detailing for you to decorate such minimal timing. Sunset cruise tenerife
wenilak444 · 1 week and 6 days ago
I have noticed that over the course of making a relationship with real estate managers, you’ll be able to get them to understand that, in most real estate financial transaction, a percentage is paid. Ultimately, FSBO sellers never “save” the percentage. Rather, they try to win the commission simply by doing the agent’s work. In doing this, they spend their money plus time to accomplish, as best they’re able to, the duties of an agent. Those jobs include displaying the home by way of marketing, offering the home to buyers, making a sense of buyer emergency in order to prompt an offer, scheduling home inspections, controlling qualification inspections with the loan provider, supervising maintenance, and aiding the closing. http://sdcc.vn/forum/forum_posts.asp?TID=3738&PID=4983#4983">Discount Budapest sightseeing Tickets
HAMZA · 1 week and 3 days ago
Gold is one of the most common things in dreams. Gold, a precious metal, is both an investment tool and a material from which women's favorite accessories can be made. yuxuda sevdiyini gormek
goxah55535 · 6 days ago
Watch movies - Watch movies ViP Turkish Dubbed Watch Foreign Movies - Watch movies is the ad-free movie viewing site that comes to mind. film izle
goxah55535 · 6 days ago
A FREE, 100% online ACA solution for Comparing plans, Quoting, and Enrolling your clients. Comprehensive Agency tools to Manage your Book of Business. enrollment software
HAMZA · 6 days ago
Canoeing and kayaking in Las Vegas will not only give you a relaxing moment, but it will also give you the freedom for other water sports and sightseeing. Best kayaking palma
wenilak444 · 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: