msgbartop
MAC OS X, Linux, Windows and other IT Tips and Tricks
msgbarbottom

09 Jun 15 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}
eg.
wget //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
eg.
curl -L --progress //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: