Smartly download stuff from the Command Line using wget

Terminal Windows

Terminal Windows

Normally you would be downloading files from the internet using your browser and its own download manager would be the right choice. However, what if you need to download files on the server which has command-line (terminal) only or you want to download a long list of files but one at a time or you want to limit the maximum download speed so that it doesn’t eat up all your limit. These are just a few of the cases in which wget command comes in handy.

Installing wget

For Linux, the fun part is that it is already installed on every Linux machine. You can verify this running the command:

wget --version

For Windows, there is a download available here. For simplicity, select the option labelled “Complete package, except sources”. Once downloaded, install it. The installation path on Windows XP is “C:\Program Files\GnuWin32\bin” but you can add it to the PATH environment variable to make it easily accessible.

For MAC OS, it doesn’t come installed but getting it is easy. Before installing wget, you need to get HomeBrew, the package manager for MAC OS. Go to and install it by simply running the command mentioned there.

Once HomeBrew is installed, run the following command to install wget:

brew install wget

Once it is installed and ready, we can get started

Downloading a Single File


This will start downloading the file to the current folder in which the Terminal prompt is. Besides downloading, it will display the progress in percentage, the download speed, total bytes downloaded and remaining time.

Downloading a Single File to a Different Location

The file downloaded in above command will be saved in the current working directory of the Terminal and with the name as it was its original name.

To save it with a different name:

wget -O

To save it in a different location, give the path also (which can be relative of absolute):

wget -O /home/user1/

Resume Download for a File

If your file was partially downloaded, you can resume it by using the -c switch, which is for continue.

wget -c

To Limit the Max Download Rate/Speed

wget --limit-rate=50K

This will not download at speed more than 50KB per second.

Download Files in the Background

If there are numerous task and you want that wget keeps on downloading them in the background:

wget -b

Download Multiple Files from a List of URLs

The wget command can take input URLs from a text file with a URL on every line and it will pipeline them for downloading:

wget -i list_of_urls.txt

These are only some of the scenarios I had to come across. I will inshAllah be updating the list of commands as the need arises.


Download Adobe CS2 Products for Free from the Official Website

Adobe Creative Suite 2

Adobe Creative Suite 2

Adobe CS2 line of products reached their end of life which also means Adobe is no longer interested in their Activation. So Adobe placed them on their website along with their Serial/Products keys without any strings attached. This news spread very fast that Adobe had to make a clarification about their intention. Whatever the case, the truth is they are available for download here.

Fix BitLocker Windows Vista Service on HP Systems

The BitLocker Service available in Windows Vista is used to secure the data in the Drives. However, HP comes with its own installed software and whenever any USB or external drive is attached with the system, the BLService.exe not responding error occurs. This is only on HP systems running Windows Vista. The exact error message is:

Microsoft Visual C++ Runtime Library
Runtime Error !
Program: C:\Windows\SMINST\BLService.exe

To solve the matter, HP released an update on 10th September 2008 which can be obtained from HP’s site:

Simply install and restart the system to get it working again!

How to combine and extract file with the extension .zip.001

ZIP files are sometimes available in small chunks with filenames ending with 001, 002 and so on. It is possible to combine all of them into a single file under Windows.

Copy all the files in the same directory and then type the command in Windows Command Prompt:

copy /B file1+file2+file3 filenew

So file1, file2 and file3 will be combined in a new file named filenew

Access Windows Remote Desktop from Ubuntu (Linux)

Ubuntu requires a package named rdesktop to connect to Remote Desktops. This package can be installed using the command:

sudo apt-get install rdesktop

Once installed, it can connect to any Windows RDC using the command:

sudo rdesktop [hostname]:[port]

To share a remote drive:

sudo rdesktop -r disk:[sharename]=[sharepath] [server_ip]:[server_port]

To start in fullscreen mode:

sudo rdesktop -f -r disk:[sharename]=[sharepath] [server_ip]:[server_port]

When running, fullscreen and window mode can be toggled using Ctrl + Alt + Enter keys.