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:  Meet Raspberry Pi Pico, Raspberry Silicon From Raspberry Foundation [Specs]

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:  Deepin 20.5 Released With New Features & Improvements

===============
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

How To Install Viber On Ubuntu 18.04 LTS Bionic Beaver Tutorials
Fix "bash: netstat: command not found" error on Debian/Ubuntu Linux Fix “bash: netstat: command not found” error on Debian/Ubuntu Linux Linux
How To Upgrade To Fedora 32 From Fedora 31 How To Upgrade To Fedora 32 From Fedora 31 Linux
LMDE 5 “Elsie” Beta Released Linux
How To Use Task View In Windows 11 How To Use Task View In Windows 11 Linux
How To Install The VMware Workstation 17 Player On Debian 11 [2023] How To Install The VMware Workstation 17 Player On Debian 11 [2023] Debian

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]
  • User Experience Writer

    • San Antonio, TX
    • Brooksource
    • Full Time
  • Heavy Equipment Service Writer

    • Walton, KY
    • PrideStaff
    • Full Time
  • UI Developer

    • Milford, OH
    • Tata Consultancy Services
    • Full Time
  • Artificial Intelligence/Machine Learning (AI/ML) Engineer III

    • Annapolis, MD
    • Reflexive Concepts, LLC
    • Full Time
  • Azure Data Engineer

    • Dallas, TX
    • Anblicks
    • Full Time
  • User Interface Developer

    • Pittsburgh, PA
    • Indotronix Avani Group
    • Full Time
  • Data Scientist

    • North Charleston, SC (Remote)
    • Bear Cognition, Inc.
    • Full Time
  • AI & Integration Analyst

    • Los Angeles, CA
    • Prestige Legal Solutions, P.C.
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme