Reputation: 42404
I am trying to download nodejs tar files from server using curl.. but its outputting strange characters to terminal and also not downloading the file. Check the screenshot
I am typing this command on terminal
curl http://nodejs.org/dist/node-v0.4.8.tar.gz
Why showing strange characters as output. I have also tried
curl -0 http://nodejs.org/dist/node-v0.4.8.tar.gz
Upvotes: 0
Views: 2973
Reputation: 9689
try curl -O http://nodejs.org/dist/node-v0.4.8.tar.gz
meaning letter O
, not zero 0
Upvotes: 0
Reputation: 5375
Add -O to not dump the file contents to the terminal.
curl -O http://nodejs.org/dist/node-v0.4.8.tar.gz
Note that it is the captital o and not zero.
For more, I can recommend http://www.tuaw.com/2007/03/05/monday-man-page-curl/
Upvotes: 5