With python builtin SimpleHTTPServer module, you can start an http service to easily and quickly share a directory with files.

With default port 8000

$ cd $directory
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...

With custom port xxxx

$ cd $directory
$ python -m SimpleHTTPServer xxxx
Serving HTTP on 0.0.0.0 port xxxx ...

See python doc for reference

BACK TO TOP
Post tagged with: python