Share a folder over the network with one command
Serve a directory as a download page that other devices can open in a browser.
01Command
$ cd /path/to/folder && python3 -m http.server 800002What it does
Python's built-in http.server turns the current directory into a browsable file listing over HTTP — no setup, no config files. Find your address with ip addr, and anyone on the same Wi-Fi or LAN can download the files. Press Ctrl+C to stop sharing.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- http.server — Python documentationEvidence: python -m http.server serves the current directory over HTTP on the given port; it is intended for testing and local use.
Last verified: 2026-09-18 · Category: Network
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.