Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to download the file at as a .tar.gz file using terminal but the problem is that when I use:

sudo wget

It downloads a file and names it 1806 but it isn't a folder not a .tar.gz file which I can extract.

Please let me know how can I do this from within the terminal.


share|improve this question
You should accept the fine answer from Rinzwind! – gsamaras Jun 6 '15 at 14:49

From man wget:

   -O file
       The documents will not be written to the appropriate files, but all will be
       concatenated together and written to file.  If - is used as file, documents
       will be printed to standard output, disabling link conversion.  (Use ./- to
       print to a file literally named -.)

       Note that a combination with -k is only well-defined for downloading a single

wget -O test.tar.gz
           => `test.tar.gz'
Connecting to||:80... connected.
HTTP request sent, awaiting response... 302 Found
Signature=MsjjmadNXZO2b9e8Pi8IrJJjw6M%3D [following]
           => `test.tar.gz'
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 472,223 (461K) [binary/octet-stream]

100%[==========================================>] 472,223      664.17K/s

14:43:13 (662.69 KB/s) - `test.tar.gz' saved [472223/472223]

$ tar tvfz test.tar.gz
drwxr-xr-x 0/0               0 2012-07-10 19:51 daq-1.1.1/
-rwxr-xr-x 0/0           13663 2012-07-10 19:32 daq-1.1.1/install-sh
-rw-r--r-- 0/0           20997 2010-09-23 19:12 daq-1.1.1/COPYING
-rw-r--r-- 0/0           34823 2012-07-10 19:32 daq-1.1.1/aclocal.m4
-rw-r--r-- 0/0           22768 2012-07-10 19:33 daq-1.1.1/
share|improve this answer
Thank you so much :) – Brown Jul 8 '13 at 14:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.