How does Linux exchange files quickly on a LAN

2022-05-17 0 By

Woof (short for Web Offer One File) is a simple application for sharing files between hosts on a small local network.It consists of a mini-HTTP server that provides a specified number of times for a specified file (the default is once) and then terminates.To use WOOF, simply invoke it on a single file, and the recipient can access your shared file, such as cURL, HTTPie, wget, or Kurly (cURL instead) from a terminal, either through a Web browser or using a command-line Web client.One advantage of WOOF over other file sharing tools is that it can exchange files between different operating systems or devices (computers, smartphones, tablets, etc.) if the recipient has a Web browser installed.In this article, we’ll show you how to install WOOF in Linux and use it to exchange files on your local network.How to install and use Woof in Linux You can use the wget command to download the Woof script and move it to the /usr/bin directory, as shown below.Linuxmi @ linuxmi/home/linuxmi/ ⚡ wget–2022-04-07 21:51:34– Parsing the (… are connected ( | | : 80…The connected.An HTTP request has been sent and is awaiting a response…200 OK Length:20420 (20K) Saving to:”Woof woof” 100% [= = = = = = = = = = = = = = = = = = = >] 19.94 K 42.3 KB/s takes 0.5 s 2022-04-07 21:51:35 (42.3 KB/s) – has been saved”Woof” [20420/20420]) copy to the following directory linuxmi @ linuxmi/home/linuxmi/ ⚡ sudo cpWoof/usr/bin/authorized linuxmi @ linuxmi/home/linuxmi/ ⚡ sudo chmod 777/usr/bin/woof To swap files, use the following command, as shown in the figure below.Linuxmi @ linuxmi/home/linuxmi/ ⚡ woof serving onhttp:// then, woof will generate a URL (for in the article example below, your friend can use this URL to access the file.Send the URL to the recipient.Once someone accesses the file.It can be downloaded using a browser or the wget command.Woof will turn off (see the screenshot below).File access via Woof Sharing Note: In the example above, we used the wget command line download program to get the shared file.Or to specify a custom name, use the -o option.Wget -o zidingyi by default, woof Shared file once, after the recipient downloads, woof terminated.You can use the -c option to set the time woOF shares files before closing.The following command will terminate WOOF after three downloads.Linuxmi @ linuxmi/home/linuxmi/ ⚡ woof – c 3 Shared directory,You can create a package and compress it using -z for gzip compression, or -j for bzip2 compression, or -z for ZIP compression.Such as:Linuxmi @ linuxmi/home/linuxmi/ ⚡ woof – 2 – z c for download file name,It should be a Gzip archive, as shown in the screen capture below.In addition, you can use the -u flag to tell WOOF to provide an upload form to allow file uploads.This file will be uploaded to the current directory where woOF was initiated:Linuxmi @ linuxmi/home/linuxmi/ ⚡ woof – U then, your friend can use to generate a URL from a browser to access the upload form.As shown in the figure.After browsing the Woof File upload form and selecting the file, click “Uplaod!Button to upload a file.After the Woof file is uploaded, you can verify that the file should be uploaded to the same directory where Woof was called.You can also view more usage options by running:Linuxmi @ linuxmi/home/linuxmi/ ⚡ woof – hWoof this is a small, simple and easy to use HTTP server,Used to exchange files over a LAN.In this article, we show how to install and use WOOF in Linux.If you have any questions or suggestions, please use the comments below to get in touch.Thanks to Linux fans for a great article.From: Linux fan link: