Linux wget command Help and Examples

Update on:
Sep 3, 2021

Linux utility wget is a free tool that is use to retrieving files using HTTP, HTTPS, and FTP protocols.

Wget has lots of features and capabilities to make it easy to retrieve large files from the internet, recursive downloads, or mirroring entire website or FTP sites.

The wget tool has the functionalities to run into the background without logged in to the system and can be called from cronjob scheduler, terminal, or bash scripts also.

There are multiple uses of wget utilities; some of the examples are below:

Example 1 –  Download a Single file

$  wget https://wordpress.org/latest.zip
–2017-10-14 03:46:06– https://wordpress.org/latest.zip
Resolving wordpress.org (wordpress.org)…,
Connecting to wordpress.org (wordpress.org)||:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 8912693 (8.5M) [application/zip]
Saving to: ‘latest.zip’
latest.zip 100%[===================================>] 8.50M 5.03MB/s in 1.7s
2017-10-14 03:46:07 (5.03 MB/s) – ‘latest.zip’ saved [8912693/8912693]

Example 2 –  Download a file and save with different name

$  wget -O wordpress.zip    https://wordpress.org/latest.zip

Example 3 –  Download a file and save it in to specific location

$  wget -P  /opt/wordpress   https://wordpress.org/latest.zip

Example 4  –  Download file in background

$   wget -b https://wordpress.org/latest.zip

Example 5 –  Download a file and set download speed

$  wget  –limit-rate=300k https://wordpress.org/latest.zip

Related Posts

The 30 most useful Linux commands

This article will introduce some practical and common Linux or Unix command , which is the Linux system administrators normally use the command . This article is not a complete list, but a brief list of commands that can be useful...

15 Practical examples of tcpdump command

15 Practical examples of tcpdump command

The tcpdump is the most essential and powerful command-line network packet sniffing tool. We use it to analyze network packets, capture or filter TCP/IP packets that transferred and received over the network on a specific network interface. It is available in almost...

15 Useful “df” Commands to Check Disk Space in Linux

15 Useful “df” Commands to Check Disk Space in Linux

There are several Linux tools available on the internet to check disk space utilization; we can use any of them. But, Linux has a best built-in command-line utility called “df”. The “df” is the short form of “disk filesystem”, we can get detailed information on used...

15 Practical examples of echo command

15 Practical examples of echo command

If you are writing a bash script, you know echo command very well. It is use to display text lines on an output screen or a file. The echo command is the most common command used by all Linux users, and it is built-in Linux command. echo command syntax: echo...

Follow Us

Our Communities

More on Linux Command

The Ultimate Managed Hosting Platform
Load WordPress Sites in as fast as 37ms!



Submit a Comment

Your email address will not be published.

5 × four =