Whether you want to download a single file, an entire folder, or even mirror an entire website, wget lets you do it with just a few keystrokes. Of course, there’s a reason not everyone uses wget: it’s a command line application, and as such takes a bit of time for beginners to learn. If you use ‘-c’ on a non-empty file, and the server does not support continued downloading, Wget will restart the download from scratch and overwrite the existing file entirely. Beginning with Wget 1.7, if you use ‘-c’ on a file which is of equal size as the one on the server, Wget will refuse to download the file and print an.
Hey I like using Terminal, it is usually much more efficient and a lot quicker then the normal methods you use on your Mac. This post is about one widely used tool on UNIX and Linux systems, wget.
Wget is a small program that can download files and folders to your computer through Terminal. There is already program similar to wget on your Mac, it is called curl. Although they do the same task, I prefer wget. When I tried curl on my computer it threw up lots of errors and problems. This post will tell you how to install wget and some simple basic usage. It is simple to do and really doesn’t take that long.
I can’t take full credit for this tip, I took some of the steps from. The first step is to download the source code.
Head over to the and download the code directly. Once as you have downloaded the package unzip it.
There will be a lots of funky files and folders. Thankfully we don’t have to deal with any of them. Open up Terminal and navigate to the folder wget is extracted in. For example: cd /desktop/temp/wget-1.9.1 We know need to configure the package for your computer and install it. This is done slightly differently to normal packages and folders you may experience. In Terminal again type the following:./configure This will configure the packages and files for your computer. Then type: make This will make the files into a single binary file for use on your computer.
Wget Download Files
Finally type: sudo make install This will copy the binary file into the correct location on your computer. Since the folder wget will copy into is a protected system folder, you will have to use the sudo command and an administrator password. You have successfully installed wget. For example you can use wget to download zip files using the following command in Terminal. Wget Wget is designed to download files and web pages in Terminal but it can do a whole lot more. For some reason the link to the page does not seem to work.
So you can visit URL instead. You can do hundreds of different things with wget. It really is quite powerful and very easy to use. I recommend reading the man page to find out how to use it. You probably wont use it every day, but for anyone who likes using Terminal, or wants to play around with some more Unix commands, wget is a very fun one to use. If I remember correctly there was an old joke where you type “wget.” to download the entire internet.
If you want to take your skills with Terminal a bit further I recommend you check out the on this site. If you fancy reading a book there is a couple on that I regularly see mentioned and recommend, and both are designed for Mac OS X and take Terminal further.