What does wget command in linux?
On Linux operating system and other unix-like operating system. wget command is The non-interactive network downloader. wget an very useful the linux operating system.
- wget syntax
- wget options
- wget examples
wget [option] [URL]
- -V, –version Display the version of wget, and exit.
- -b, –background Go to background immediately after startup.
- -o logfile, –output-file=logfile Log all messages to logfile. The messages are normally reported to standard error.
- -q, –quiet Turn off wget’s output.
- –no-proxy Don’t use proxies, even if the appropriate *_proxy environment variable is defined.
The more information wget option refe to : $ man wget
Download a single file
For example, To download the latest wordpress version you can use the following command
$ wget https://wordpress.org/latest.zip
To download a file and save it with a specify name
$ wget -O wordpress.zip https://wordpress.org/latest.zip
To download a file and save it with a specify folder
$ wget -P /opt/wordpress https://wordpress.org/latest.zip
Setting the download speed
$ wget --limit-rate=600k https://wordpress.org/latest.zip
Download multiple files
To create a text download.txt file
$ touch download.txt
The content download.txt file as below
After you use -i option to download multiple file
$ wget -i download.txt
Thought the article, you know what wget command as above . I like “Linux operating system“. You become a Linux system administrator and DevOps. I hope will this your helpful.