$ wget -limit-rate=2m Resume Cancelled DownloadĮspecially big files take time to download. In the following example, we set the download limit as 2 Megabit which is expressed as “2m”. The -limit-rate option can be used to limit download speed. But we can limit the download speed which does not fill the bandwidth. By default, the download speed is not limited. The download speed is related to the current internet connection speed. $ wget -O /Downloads Limit The Download Speed In the following example, we download file to the “/Downloads”. The -P option is used with the path we want to save files to a different location. But we can specify different paths or locations to save files. $ wget -O Download a File To The Specified Directory/Pathīy default, the file is downloaded to the current working directory or current path. In the following example, we save the downloaded file with the name of “”. Also, the new name of the download file is provided after the -O option. We can change the original or default name of the file during save with the -O option. $ wget -q Save Downloaded File with Different Nameīy default, the downloaded file is stored with its original name provided by the server. Alternatively, the -quite option can be provided which is the long form of the -q option. The -q option can be used to hide this download information and details. Hide Information Screen During DownloadĮvent the wget command provides useful information about the download we may not want to display it during download. The last information is the estimated complete time which is “ 67s“. The current download speed is displayed after that which is “ 1,48MB/s“. The downloaded size is displayed after the progress bar which is “ 17,41M” in this example. The completed percentage is displayed before the progress bar with the percentage sign. The current progress is displayed in the last line between square brackets. The wget command provides a lot of information about the download. $ wget ĭuring download, we see the screen above. In the following example, we download the Linux kernel source file named “ linux-5.13.7.tar.xz“. There is no need to provide extra parameters or options. The wget can be used to download a single file just by providing the file URL. URL is the file, path or web page locatation we want to download. OPTIONS is single or more options used to set some attributes about the wget command.The wget command has simple syntax where the options and download URL is provided as parameters. Install wget in CentOS, RHEL and Fedora: $ sudo dnf install wget wget Command Syntax Install wget in Ubuntu, Debian, Mint, and Kali: $ sudo apt install wget The wget command can be installed like below. If you try to run the wget command in a non-installed system the following wget command not found error is displayed on the command-line interface. The wget is provided by all Linux distributions like Ubuntu, Debian, Mint, Kali, CentOS, RHEL, etc. The wget tool provides robustness, recursive download, non-interactiveness download, portability, SSL/TLS support. The wget command can use different protocols to downloads files and data like HTTP, HTTPS, FTP, etc. The wget is very popular in the open-source community as a download manager. The wget command or tool is used to download and retrieve data from websites, FTP servers, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |