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.
wget command is not installed by default in Cygwin. To install
wget, re-run the Cygwin setup and select the
wget is selected to install, the screen should look like this:
Click next to complete the installation and run
wget using the
Cygwin Terminal or
Cygwin64 Terminal (if you have installed the 64-bit version).
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
The download link is here.
Trying it often means adopting it, in most cases :)