Quick file sharing using Python

less than 1 minute read

First drop an alias -

alias qshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"' 

into your bash profile. Then whenever you want to share the contents of a folder with somebody, changing the directory to the appropriate folder and running “qshare”, you’ve got yourself a webserver running on port 8000 with directory listing enabled.