easily serve files via HTTP
$ cd somedirectoryof_files
$ python -m SimpleHTTPServer 9090
Now surf over to your IP address on port 9090.
SimpleHTTPServer is a python implementation of a super basic web server in the the python standard lib. Since python is installed by defaults on many distributions, it's a convenient file transfer option.. Although it will prevent simple directory traversals (e.g. ../../../..), It is not really intended to be a production webserver and I'd not leave it exposed for longer than I needed in order to make a quick file transfer.
Written by William McVey
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#