5 Wget Command Examples to Download Files in Linux.

wget is used to download your files from the remote server. It is used mostly on Linux Command-Line. It works as you

(1) Download File to same directory using Wget :

You can download the file to the current directory using the below wget command.

# wget https://accuwebhosting.com/download.zip

(2) Download File & Save to Specific Location :

If you want to download the file at any specific location.

# wget https://accuwebhostin.com/download.zip -O /opt/download.zip

(3) Download File from FTP :

Use below command to Download files from FTP.

# wget ftp://ftp.accuwebhosting.com/download.zip

(4) Download File from Password Protected URLs :

When you access any URL to download files and it requires username and password to download a file.

Use following command to Download the file from password-protected ftp server.

# wget --ftp-user=username --ftp-password=password ftp://ftp.accuwebhosting.com/download.zip

Use following command to Download file from password protected http server

#  wget --http-user=username --http-password=password https://accuwebhosting.com/download.zip

(5) Download File from the Untrusted Secure URL :

Use the following command to download file from the untrusted secured URL.

# wget https://accuwebhosting.com/download.zip --no-check-certificate
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to install/add Softaculous in Plesk?

Softaculous is software that auto-install web applications with one click. There is a wide range...

How to install Virtualmin / Webmin control panel in Ubuntu 16/18?

Before installing Virtualmin/Webmin on Ubuntu 16. We need to make sure that our system is up to...

How to install ISPConfig on CentOS 7.x?

This article will help you on how to install ISPConfig on CentOS 7.xISP config is an open-source...

How to take Backup of Exim Configuration from WHM?

EXIM comes with cPanel which is responsible for the email tranfer on the Linux server. Users can...

R1Soft : An error occurred while loading the hcpdriver module

R1soft CDP backup allows for full server backup and you can use it to perform the bare metal...