Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 –  Sandeep Shamal Dec 26 '13 at 13:13
    
Have you tried using curl? –  dillmo Dec 30 '13 at 16:13
1  
@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

2 Answers 2

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

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 :( –  Sandeep Shamal Dec 26 '13 at 15:01
    
what did you try ? open a cmd Windows, then cd to UnxUtils wbin folder, then type wget www.yahoo.com –  user2196728 Dec 26 '13 at 15:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.