Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form
Manjaro Linux 22.0 “Sikaris” Released With Linux Kernel 6.1

Linux Wget Examples

Posted on September 27, 2023 By Jim Hoffman No Comments on Linux Wget Examples

$ wget [option] [URL]
=========================================
First, check whether the wget utility is already installed or not in your Linux box, using the following command.
$ rpm -q wget [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux]
$ dpkg -l | grep wget [On Debian, Ubuntu and Mint]

=============================================
If Wget is not installed, you can install it using your Linux system’s default package manager as shown.
$ sudo apt install wget -y [On Debian, Ubuntu and Mint]
$ sudo yum install wget -y [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux]
$ sudo emerge -a net-misc/wget [On Gentoo Linux]
$ sudo pacman -Sy wget [On Arch Linux]
$ sudo zypper install wget [On OpenSUSE]

The command will download a single file and store it in a current directory. It also shows download progress, size, date, and time while downloading.

# wget http://ftp.gnu.org/gnu/wget/wget2-2.0.0.tar.gz

–2021-12-10 04:15:16– http://ftp.gnu.org/gnu/wget/wget2-2.0.0.tar.gz
Resolving ftp.gnu.org (ftp.gnu.org)… 209.51.188.20, 2001:470:142:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3565643 (3.4M) [application/x-gzip]
Saving to: ‘wget2-2.0.0.tar.gz’

wget2-2.0.0.tar.gz 100%[==========>] 3.40M 2.31MB/s in 1.5s

2021-12-10 04:15:18 (2.31 MB/s) – ‘wget2-2.0.0.tar.gz’ saved [9565643/9565643]

=============================

Using -O (uppercase) option, downloads files with different file names. Here we have given the wget.zip file name as shown below.

# wget -O wget.zip http://ftp.gnu.org/gnu/wget/wget2-2.0.0.tar.gz

–2021-12-10 04:20:19– http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz
Resolving ftp.gnu.org (ftp.gnu.org)… 209.51.188.20, 2001:470:142:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 446966 (436K) [application/x-gzip]
Saving to: ‘wget.zip’

READ More Relevant Stuff:  Fedora Linux 36 Beta Released

wget.zip 100%[===================>] 436.49K 510KB/s in 0.9s

2021-12-10 04:20:21 (510 KB/s) – ‘wget.zip’ saved [446966/446966]

===================
To download multiple files at once, use the -i option with the location of the file that contains the list of URLs to be downloaded. Each URL needs to be added on a separate line as shown.

For example, the following file ‘download-linux.txt‘ file contains the list of URLs to be downloaded.
# cat download-linux.txt

https://releases.ubuntu.com/20.04.3/ubuntu-20.04.3-desktop-amd64.iso
https://download.rockylinux.org/pub/rocky/8/isos/x86_64/Rocky-8.5-x86_64-dvd1.iso
https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-11.2.0-amd64-DVD-1.iso

========================
To download or mirror or copy an entire website for offline viewing, you can use use the following command that will make a local copy of the website along with all the assets (JavaScript, CSS, Images).
$ wget –recursive –page-requisites –adjust-extension –span-hosts –convert-links –restrict-file-names=windows –domains yoursite.com –no-parent yoursite.com

=======================
With -b option you can send a download in the background immediately after the download starts and logs are written in the wget.log file.

$ wget -b wget.log https://releases.ubuntu.com/20.04.3/ubuntu-20.04.3-desktop-amd64.iso

Continuing in background, pid 8999.
Output will be written to ‘wget.log’.

========================
With -b option you can send a download in the background immediately after the download starts and logs are written in the wget.log file.

$ wget -b wget.log https://releases.ubuntu.com/20.04.3/ubuntu-20.04.3-desktop-amd64.iso

Continuing in background, pid 8999.
Output will be written to ‘wget.log’.

=================
View the wget.log file and check the download speed of the wget.

$ tail -f wget-log

5600M ………. ………. ………. ………. ………. 0% 104M 8h19m
5650M ………. ………. ………. ………. ………. 0% 103M 8h19m
5700M ………. ………. ………. ………. ………. 0% 105M 8h19m
5750M ………. ………. ………. ………. ………. 0% 104M 8h18m
5800M ………. ………. ………. ………. ………. 0% 104M 8h18m
5850M ………. ………. ………. ………. ………. 0% 105M 8h18m
5900M ………. ………. ………. ………. ………. 0% 103M 8h18m
5950M ………. ………. ………. ………. ………. 0% 105M 8h18m
6000M ………. ………. ………. ………. ………. 0% 69.0M 8h20m
6050M ………. ………. ………. ………. ………. 0% 106M 8h19m
6100M ………. ………. ………. ………. ………. 0% 98.5M 8h20m
6150M ………. ………. ………. ………. ………. 0% 110M 8h19m
6200M ………. ………. ………. ………. ………. 0% 104M 8h19m
6250M ………. ………. ………. ………. ………. 0% 104M 8h19m

READ More Relevant Stuff:  Install Squid Proxy on Ubuntu 20.04

===============
To ignore the SSL certificate check while downloading files over HTTPS, you can use the –no-check-certificate option:

$ wget –no-check-certificate https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.1.1.tar.gz

–2021-12-10 06:21:21– https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.1.1.tar.gz
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)… 147.75.95.133, 2604:1380:3000:1500::1
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.95.133|:443… connected.
WARNING: The certificate of ‘mirrors.edge.kernel.org’ is not trusted.
WARNING: The certificate of ‘mirrors.edge.kernel.org’ is not yet activated.
The certificate has not yet been activated
HTTP request sent, awaiting response… 200 OK
Length: 164113671 (157M) [application/x-gzip]
Saving to: ‘linux-5.1.1.tar.gz’

=================
To download a file from a password-protected FTP server, you can use the options –ftp-user=username and –ftp-password=password as shown.

$ wget –ftp-user=narad –ftp-password=password ftp://ftp.example.com/filename.tar.gz

Linux, Linux Commands

Post navigation

Previous Post: Useful Best GNOME Desktop Extensions Updated
Next Post: The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills

Related Posts

Xfce 4.18 Officially Released Xfce 4.18 Officially Released Linux
Never Run These Commands On Linux : Linux Guides Never Run These Commands On Linux : Linux Guides Linux
List Of Best Raspberry Pi Books For Beginners In 2021 Linux
clean temp file in linux Install Bleachbit To Clear Cache And Free Space In Linux Linux
How To Check The Size Of RAM In Linux : Physical Memory In Linux How To Check The Size Of RAM In Linux : Physical Memory In Linux Linux Commands
Examples of Touch Command in Linux What Is A Touch Command: Examples of Touch Command in Linux Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023
  • Linux Wget Examples September 27, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at [email protected]
  • Data Scientist / Senior Data Scientist, Proteomics

    • San Francisco, CA (Remote)
    • Calico
    • Full Time
  • Solutions Architect (GCP or AWS Certified) – YC Startup in San Francisco

    • Sonoma, CA
    • Pump.co
    • Full Time
  • Azure Cloud Engineer

    • Bellevue, WA
    • Sono Bello
    • Full Time
  • Senior Lead Architect

    • Dunwoody, GA
    • Cox Automotive
    • Full Time
  • Principal Architect IV, Google Cloud

    • San Francisco, CA
    • AECOM
    • Full Time
  • Senior .Net/Azure Developer

    • San Francisco, CA
    • HTC Global Services
    • Full Time
  • DevOps Architect – Azure & Github

    • Washington DC
    • Slalom
    • Full Time
  • AI Math Analyst – Part Time Work From Home

    • Washington DC
    • Outlier
    • Part Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme