Updated : Jun 09, 2015 in Bash

Downloading tar.gz files from the Linux command line

Sometimes we need to download a file from Internet using the bash command line. here are some suggestions:
Using WGET:
wget {URL}
wget https://my.server.com/downloads/file.tar.gz

Using CURL:
(Fancy progress info given as the download progresses and will unpack it at the same time)
curl -L --progress {URL} | tar xz
curl -L --progress https://my.server.com/downloads/file.tar.gz | tar xz

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: