So in an effort to further my skills and my pure geekness as a CIT major and a cleanfreak in general I have drastically improved my knowledge by trial and error yet once again. The trying and erroring was mostly done by me and one question to codekoala and the mystery solved. So the situation is I sometimes want to download a large file and i don’t want to have use firefox and open the whole browser. Well I also want to use a completely native application on my mac just for the sake of keeping my mac not clogged up with so much stuff. I could have installed macports and I actually did to use wget from within the command line but curl is already native and so I started experimenting with it. At first I just did: curl URL
As you very well may know this just spitts the download to standard out and prints I think ASCII to the screen as it is being downloaded. Well, my very limted knowledge of linux and unix told me well just see what happens, maybe the file will show up. So I started checking in the directory, nothing. So then codekoala came online, I asked him and he told me.
So here is the command:
curl -O url
what the -O does: it says instead of spit this out as standard out on the command line put it to the file with the same name as it has on the web server.
Don’t I feel like a smart one. 🙂
2 replies on “Curl”
Nice one Nic. Gotta love the command line!
Love the changes to your blog. Keep up the good work. 🙂