Commands
Commands
Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
~$
Display all 922 possibilities? (y or n)
!
./
2to3
2to3-2.7
2to3-3.12
:
[
[[
]]
aarch64-linux-android-clang
aarch64-linux-android-clang++
aarch64-linux-android-cpp
aarch64-linux-android-g++
aarch64-linux-android-gcc
add-trusted-certificate
addpart
alias
am
amdgpu-arch
analyze-build
apt
apt-cache
apt-config
apt-get
apt-key
apt-mark
aria_chk
aria_dump_log
aria_ftdump
aria_pack
aria_read_log
arp
awk
b2sum
base32
base64
basename
basenc
bash
bg
bind
blkpr
blockdev
break
brotli
bugpoint
builtin
bunzip2
bzcat
bzcmp
bzdiff
bzgrep
bzip2
bzip2recover
bzless
bzmore
c++
cal
caller
captest
case
cat
cc
cd
chcon
chcpu
chgrp
chmod
choom
chown
chroot
chrt
chsh
cksum
clang
clang++
clang++-20
clang-20
clang-apply-replacements
clang-change-namespace
clang-check
clang-cl
clang-cpp
clang-doc
clang-extdef-mapping
clang-format
clang-include-cleaner
clang-include-fixer
clang-installapi
clang-linker-wrapper
clang-move
clang-nvlink-wrapper
clang-offload-bundler
clang-offload-packager
clang-query
clang-refactor
clang-reorder-fields
clang-repl
clang-scan-deps
clang-sycl-linker
clang-tblgen
clang-tidy
clangd
clear
cmatrix
cmd
cmp
col
colcrt
colrm
keyboard_arrow_down
Categories
search
VPS
Apr 25, 2025
Domantas G.
5min Read
What is the wget command and how to use it (12 examples included)
This guide teaches you how to use the wget command on Linux. It provides 12 examples of
wget commands in action to help you use them. Once you’re done, you’ll know all about wget
and how to use it to get files from the web.
What is the wget command?
How to install wget?
Wget command examples
Using wget command to download single files
Using wget command to download multiple files
Using wget command to get files under different names
Using wget command to save files in specified directory
Using wget command to limit download speed
Using wget command to set retry attempts
Using wget command to download in background
Using wget command to download via FTP
Using wget command to continue interrupted downloads
Using wget command to retrieve whole websites
Using wget command to locate broken links
Using wget command to download numbered files
Wget command FAQ
What is the wget command used for?
How do I run wget?
How do I download files using wget?
What is the wget command?
Wget is a command-line tool that makes it possible to download files from the internet directly to
your active directory. It operates in the background, allowing tasks to continue even if you’re
offline. The name is a combination of World Wide Web and the word get. It supports downloads
via FTP, SFTP, HTTP, and HTTPS.
Wget is created in portable C and is usable on any Unix system. It’s also possible to implement
on Mac OS X, Microsoft Windows, AmigaOS, and other popular platforms.
wget https://wordpress.org/latest.zip
Here is the output that you will see:
nano example.txt
This will create an example.txt file and open a text editor interface. Paste these links there:
https://wordpress.org/latest.zip
https://downloads.joomla.org/cms/joomla3/3-8-5/Joomla_3-8-5-Stable-Full_Package.zip
https://ftp.drupal.org/files/projects/drupal-8.4.5.zip
Once done, you may use -i to get all the files stored in your example text file:
wget -i example.txt
Wait for the process to finish, and you’ll have the installations of the three most popular content
management systems.
The -O option makes unzipping archives in Linux more efficient, as you don’t need to retype the
full name.
wget -b http://example.com/beefy-file.tar.gz
A wget-log will appear in your working directory, which can be used to check your download
progress and status. You can also use the tail command:
tail -f wget-log
Using wget command to download via FTP
The command is also usable with FTP. All you need to do is specify the username and
password like in this wget example:
wget --ftp-user=YOUR_USERNAME --ftp-password=YOUR_PASSWORD
ftp://example.com/something.tar
Using wget command to continue interrupted downloads
Your download can get interrupted if you lose the internet connection or experience a power
outage. This is quite a common occurrence when getting huge files. Instead of starting over, it’s
possible to continue the download using the -c function:
wget -c https://example/very-big-file.zip
If you proceed without the -c function, the new file will have .1 added at the end as it already
exists.