Last Updated: February 25, 2016
·
811
· wamcvey

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.