This post was originally published on go2linux.org, a Linux blog I ran from 2007 to 2011. The domain is no longer mine, but I am the original author. I am republishing it here on garron.me with corrections and improvements.
If you want to share a file from your Linux with other users, the easiest way to do that is:
Using Python and this command.
python -m SimpleHTTPServer
You can also use the PHP embedded server.
php -S http://localhost:4000
You can change the port php is going to use, you need to have python or php installed of course.