Easily serve / share files and folders over HTTP in Linux (here debian based distros) on your Local Area Network using servefile, a super lite file server

First install servefile, open terminal and enter-

$ sudo apt install servefile

Now let's serve a directory over LAN
Example, to serve /home/r/Desktop (default port 8080)

$ servefile -l /home/r/Desktop

To serve /home/r/Desktop using port 8887, for example

$ servefile -p 8887 -l /home/r/Desktop




The directory is now available at
http://192.168.0.107:8080





Directories with spaces in their names don't seem to work. For example /home/r/Desktop/Videos can be served but not /home/r/Desktop/My Videos
To make it work either serve /Desktop instead or rename /My Videos to /Videos or whatever, no spaces allowed