Wget specifies the name of the saved file
GNU Wget is a command-line program for downloading files from Web sites
GNU Wget is a command-line program for downloading files from Web sites. Wget allows you to download files using HTTP, HTTPS and FTP protocols.
The wget command offers many options that allow you to download multiple files, resume downloads, limit speed, download recursively, download in the background, mirror websites, and more.
The wget command is now pre-installed on most Linux distributions, to check if the system has wget installed. Please press the shortcut key CTRL+ALT+T
to open the terminal and run wget
the command.
Install wget
If wget is installed, the terminal prints the error message wget: missing URL, otherwise prints the message wget command not found.
If your computer is running a Debian-based Linux distribution. Such as Linux mint, Ubuntu. Please run the command to sudo apt install wget
install wget.
If your computer is running a RedHat-based Linux distribution. For example CentOS, Fedora. Please run the command to sudo yum install wget
install wget.
sudo apt install wget
sudo yum install wget
specifies the name of the saved file
To save the file downloaded by wget under a different name, there are two ways to do this in wget, one is to use the -O
option.
The other is to write the file downloaded by wget to the standard output , and then use the standard output redirection symbol >
to write to the file.
Usually when using wget to download files, Linux system administrators will also specify the -c
option to download files, which allows you to resume the download when the download is disconnected.
wget -cO myfreax.com https://www.myfreax.com/
wget -cO - https://www.myfreax.com/ > myfreax.com