Linux tricks, one-liners & shell magic
← Back to all tricks
Run a local HTTP server instantly

Serve the current directory over HTTP for quick file sharing on the LAN — requires only Python 3.

bash
$ python3 -m http.server 8080 # On a specific interface: python3 -m http.server 8080 --bind 0.0.0.0 # Then access from another machine: curl http://<your-ip>:8080/
quickserve2026-04-19
Delete this trick? This cannot be undone.