There can be times when you want to share a file or directory with colleagues. Here’s a really simple way to do that (assuming you have Python installed):
$ python -m SimpleHTTPServer
Now you and your colleagues can browse all files in and under the directory in which you ran the command above by accessing
Try it now: run the above command, and go to
If you have a file called
index.htmlin the directory, that will be shown instead of the file listing.
There’s no security. Anyone who can access your workstation will have access to the files in and below the directory from which you ran the command. Your internal security policies may prohibit this kind of file sharing.
Could This Linux Tip Be Improved?
Let us know in the comments below.