`python -m http.server` as ephemeral Dropbox

Ever need to download a file from a server โ€“ or get someone else to download a file from a server, who may not be comfortable with or should have access to scp or sftp? Turns out, if you have Python installed โ€“ and you probably do โ€“ it comes with a handy one-liner file server for just such an occasion: 1 python -m http.server 12345 # or whatever port you prefer Then to close the server, just Ctrl+C....

January 21, 2025