Super User is a question and answer site for computer enthusiasts and power users. 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'm using Cygwin on Windows because some commands in Windows's CMD are not working but working on terminal of OS X and Linux. When I type the wget command and URL, it says command not found. Is there any suggestion to fix this.

enter image description here

share|improve this question
Are others commands, like ls, works fine ? – user2196728 Dec 26 '13 at 13:05
@user2196728 I'm completely new to Cygwin so I know just cd command is working – Shamal Sandeep Dec 26 '13 at 13:13
Have you tried using curl? – dillmo Dec 30 '13 at 16:13
@dillmo technically he hasn't really even tried using wget, he hasn't even realised that he isn't executing it!! or he has realised it and he hasn't thought to look for wget.exe on his system. I don't think him trying curl would help him! – barlop Dec 30 '13 at 16:40
up vote 27 down vote accepted

The wget command is not installed by default in Cygwin. To install wget, re-run the Cygwin setup and select the wget package:

wget utility in package list

If wget is selected to install, the screen should look like this:

wget utility selected to install

Click next to complete the installation and run wget using the Cygwin Terminal or Cygwin64 Terminal (if you have installed the 64-bit version).

share|improve this answer
you may find wget under Web instead of Net on newer versions of cygwin – WOUNDEDStevenJones Mar 29 at 23:48

Here is an alternative to yjwong's answer, even if it is not a direct answer to your Cygwin problem, it is a Cygwin alternative.

Usually, when i need to take advantage of the power of Linux commands under Windows environnement (for one shot purpose or batch scripting) i don't use an overkill such as Cygwin. I just use UnxUtils.

It provides a lot and main common used Linux commands. These commands run as stand-alone exe files, with no need to install anything on Windows machine.

This is also true if you only need the wget command.

The download link is here.

Trying it often means adopting it, in most cases :)

share|improve this answer
it is not working :( – Shamal Sandeep Dec 26 '13 at 15:01
what did you try ? open a cmd Windows, then cd to UnxUtils wbin folder, then type wget – user2196728 Dec 26 '13 at 15:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .