Sharing a Directory Content over HTTP with Python
Sometimes, you need to share some files or directories from your Linux machine in a fast and easy way.
There is no simpler way than ...
It creates a Simple HTTP Server, that turns the current directory into your web server directory, that gives you an opportunity to share files from it over HTTP.
# For Python >=2.4 python -m SimpleHTTPServer # For Python 3.x python -m http.server
Now you can access the shared folder by visiting
# For Python >=2.4 python -m SimpleHTTPServer 8888 # For Python 3.x python -m http.server 8888