Quickly Share a Folder Using HTTP On a Linux Host

DZone 's Guide to

Quickly Share a Folder Using HTTP On a Linux Host

How to share files quickly when working in a mixed environment with both Windows and Linux machines without using Dropbox.

· Cloud Zone ·
Free Resource

Working on a mixed environment, with Windows and Linux boxes, you might want to share some stuff from a Linux machine with a user that doesn’t have an SSH client with file tranfer support or even installed. Or even send some files to download to a non-techie teammate.

Something everybody is used to is downloading files from the browser, why not use that?

On your linux box, go to the directory where the files are stored and run the following command:

python -m SimpleHTTPServer

For example, I shared a folder called “vmware-tools-distrib”:

Afterwards, the target user only has to open the browser and navigate to the address of the linux box on port 8000.

Easy and handy.

file sharing, linux, networking, python

Published at DZone with permission of Joao Osorio . See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}