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 add user to sudo group in a Linux VPS?

With Sudo you can provide special privileges to any user or group. In Linux, there are few...

Fix cPanel Error -The Email Account Already Exists

Sometimes, you add an email account from cPanel, and you get an error message The Email Account...

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

Can I upgrade my VPS plan without losing any data or settings?

Yes, you can upgrade your existing VPS to higher plan anytime. Your data will remain intact. We...

How to enable Analytics Feature from cPanel ?

cPanel has launched the Interface Analytics plugin in WHM version 78. cPanel Analytics plugin...