How to install Cygwin in Windows

If you are the Linux user, then definitely you will be missing the terminal in the Windows environment. Terminal in Linux or Unix can be used to do any sort of things using command lines. Command prompt is the alternative to Terminal but its user interface is not so friendlier. If you want to use the terminal in Windows, then Cygwin is the best tool for you.

Cygwin is the open source application which lots of optional packages which allow you to run and execute the Linux and Unix commands in your Windows PC. Here let us see how to install and configure cygwin in windows environment.

How to install Cygwin in Windows

  • First download Cygwin from official site, depending on your system architecture either 32 bit or 64 bit. The executable file is very small in size, but it downloads some required packages when installing it.
  • After downloading the Cygwin installer, launch it as an administrator. This will open the welcome screen and click on Next to proceed further.
  • In this screen select radio button Install from internet and click on next button to continue. This action will download all the required packages for installation and will store in the local directory to use in future.
  • In the next screen you can select the root directory for the Cygwin installation. Leave the default settings as it is unless you want to customize the installation directory and user access. Click on Next button to continue to next step.

install-cygwin-select-directory

  • In the next screen select the place on the disk where to store these downloaded files.
  • In the next windows leave the default option as it is, unless you are using some sort of HTTP proxy to access internet and click on Next.

install-cygwin-connection-type

  • In the next window, select from which site you would like to down the packages from the dropdown. As the details are not provided, click on any random site to downloaded the packages.
  • In the following window, Cygwin will show the available packages. Here you can keep them at the default settings and click on Next button.
  • Cygwin will download all the default packages required and install them on your PC. Downloading these packages will take some time depending on your internet speed.
  • After it get installed, you can use Cygwin you can using it from start menu or using desktop shortcut.

Alternatively, you can even configure Cygwin to work with the regular windows command prompt, so no need to launch it specifically. For this,

  • Go to start menu and type system and select option System in control panel.
  • Click on Advanced System settings located in the left pane and this will open system properties.
  • In the next window click on Environment variables button and scroll down and select variable path under system variables and then click on Edit button.
  • Add the below location at end of the line and separate it with ;. If you have selected other installation directory when installing Cygwin then change location accordingly. After adding it click on OK for the changes to take place.
    C:Cygwinbin

That’s it, from this point you can use Linux commands in the Windows command prompt.

You may also like...