Friday 3 February 2017

using linux command in windows

Please follow the instructions to install Cygwin software and run UNIX commands in Windows machine without any additional Linux system required:

click this link to download cygwin
https://www.cygwin.com/

Make sure you are downloading the appropriate version based on your operating system. (Check your system is either 64 bit operating system or 32 bit operating system). I have downloaded 64 bit because my operating system is 64 bit. You can check your operating system by Start->Right Click on Computer->Select Properties.
2) Once setup.exe file gets downloaded, double click on .exe file to initiate the installation process.

3) Click on Next button to proceed installation.
cyg2


4) Leave the default option selected as Install from Internet and click on Next.
5) Leave the default name Root Directory and click on Next.
cyg4
6) Click on Next.
cyg5
7) Click on Next again.
cyg6
8) Select any download mirror and click on Next.
Similarly keep on clicking next until you get this screen-
cyg7
9) It will take a little long time to download and install so please keep patient. After successfully installation, go to your desktop and double click on icon-
cyg8
Or Go to Start and click on Cygwin64 Terminal option.
cyg9
10) Once you double click you will see the Cygwin window looks similar as Windows command prompt.
cyg10
On this window also you can write UNIX commands and execute. But using this window you can’t update or access any file. So might be it’s not much useful here.
To perform other additional operation and to work on normal Windows command prompt we need to set Cygwin path.
Please follow the process to set the Cygwin path to work on normal Windows command prompt.
1) Go to Start and Right Click on Computer and Select properties.
cyg11
2) Click on Advanced system settings shown on left side.
cyg12
3) Click on Advanced tab and then Environment Variables button.
cyg13
4) Under system variables select Path and then click on Edit button.
cyg14
5) In variable value at the end add ;C:\cygwin64\bin\
cyg15
6) Click OK and close all the windows opened.
Open your windows command prompt and type any LINUX command. I have typed here “echo” and got the result ECHO is on. Wow it works!
cyg16
Now you have successfully set the path and ready to run UNIX commands in Windows default command prompt.
Hope you are happy with running LINUX commands in the Windows machine.

No comments:

Post a Comment