Run a local server to share files

Linux, CLI

Do not run this command in your home folder.

mkdir -p /tmp/shared/

cd /tmp/shared/

echo “Hello world” > WELCOME.txt

If using Python 2.x #

python -m SimpleHTTPServer

Python 3.x #

python3 -m http.server

This will listen on port 8000 by default.