8/31/2016 Run UNIX/LINUX commands in Windows Testingfreak
TESTINGFREAK SOFTWARE TESTING JMETER SELENIUM TECHNOLOGY MORE
Replay
PLAY
FREE
No Deposit Required
No Deposit Required RUMMY
RUMMY
Play For Free WIN real CASH
Offer valid for 48 hours NOW
Run UNIX/LINUX commands in Windows Search
Naveen How To's, Technology, Testing Learning, Windows
If you do not have Linux machine handy with you and if you want to run UNIX or Linux
commands which could be executed only in the Linux machine are really difficult situation.
Couple of day’s back I got few UNIX commands that I had to run in Linux machine. But I had
only Windows 7 operating system installed in my system that was not helpful at all to run UNIX
commands. Finally I started thinking how we can run UNIX or Linux commands in Windows
machines if there is no any Linux operating system installed system available and finally got the
solution.
There is a tool named Cygwin that needs to be installed in your windows machine. It’s quite
easy to install and run. What all you have to do, you have to download Cygwin setup .exe file
and install in your Windows machine. Cygwin provides the platform to run UNIX commands in
Windows machines.
TRENDING NOW
Please follow the instructions to install Cygwin software and run UNIX commands in Windows
machine without any additional Linux system required:
How To Change Default Location For
Download In Browsers
1) Go to the link and download Cygwin setup .exe file – Click Here
How To Make Your Browser Working
Make sure you are downloading the appropriate version based on your operating system. Offline
(Check your system is either 64 bit operating system or 32 bit operating system). I have
How To Generate Excel Graph By
downloaded 64 bit because my operating system is 64 bit. You can check your operating
Referring Data From Different Sheet
system by Start->Right Click on Computer->Select Properties.
Convert .der/.crt/.p12 to .jks File or
2) Once setup.exe file gets downloaded, double click on .exe file to initiate the installation Create .jks File Using Keytool
process. How to Disable Mobile Data for
Particular App in Android
How To Schedule a Mail In Gmail To
Be Sent It Later Using Boomerang
Rename Multiple Files Quickly
Logout From Facebook Remotely By
Following Few Simple Steps
Important Tips To Identify Phishing
Emails Or Fraud Emails
Convert Live Photos Into GIF By
Following Few Easy Steps
http://testingfreak.com/rununixlinuxcommandsinwindows/ 1/7
8/31/2016 Run UNIX/LINUX commands in Windows Testingfreak
CATEGORIES
Jmeter
Selenium
LinkChecker
XENU
Testcase
Checklist
SDLC
Bug/Defect Life Cycle
Waterfall Model
Spiral Model
V-Model
Incremental Model
RAD Model
Testing Differences
Agile Methodology
3) Click on Next button to proceed installation.
Test Plan
Operational Readiness Test
Security Testing
Cross Browser Testing
ETL Testing
Open Source Load Testing Tools
Performance Testing Tools
Open Source Functional Testing
Tools
Open Source Unit Testing Tools
Mobile Testing
Testing Interview Questions
Software Testing Basics
Install testNG
SoapUI
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.
http://testingfreak.com/rununixlinuxcommandsinwindows/ 2/7
8/31/2016 Run UNIX/LINUX commands in Windows Testingfreak
6) Click on Next.
7) Click on Next again.
8) Select any download mirror and click on Next.
Similarly keep on clicking next until you get this screen-
http://testingfreak.com/rununixlinuxcommandsinwindows/ 3/7
8/31/2016 Run UNIX/LINUX commands in Windows Testingfreak
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-
Or Go to Start and click on Cygwin64 Terminal option.
10) Once you double click you will see the Cygwin window looks similar as Windows command
prompt.
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.
http://testingfreak.com/rununixlinuxcommandsinwindows/ 4/7
8/31/2016 Run UNIX/LINUX commands in Windows Testingfreak
2) Click on Advanced system settings shown on left side.
3) Click on Advanced tab and then Environment Variables button.
4) Under system variables select Path and then click on Edit button.
5) In variable value at the end add ;C:\cygwin64\bin\
http://testingfreak.com/rununixlinuxcommandsinwindows/ 5/7
8/31/2016 Run UNIX/LINUX commands in Windows Testingfreak
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!
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.
« Create a Java Project and Install Selenium How to access Facebook offline… »
Webdriver in Eclipse
5 Responses to “Run UNIX/LINUX commands in Windows”
Peeush
August 20, 2016 at 10:54 am
With cygwin, can we execute any kind of shell scripts we know or are there any limitations?
Reply
Veena
August 18, 2016 at 4:45 am
this article is very helpful. Thanks a ton
Reply
Manoj Kumar
August 12, 2016 at 12:27 pm
Mentioned steps are very helpful. Could you please provide same information to install Unix in
Window XP and Window-10
Reply
Jeetu
July 16, 2016 at 7:04 am
good information
Reply
Ashwini
May 12, 2016 at 8:37 am
I am trying to execute Unix commands but this is not working on windows 7..giving this
error”command no recognized by internal or external command”
http://testingfreak.com/rununixlinuxcommandsinwindows/ 6/7
8/31/2016 Run UNIX/LINUX commands in Windows Testingfreak
Reply
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Please Enter Security Code ⟲
Name *
Email *
Website
POST COMMENT
About | Privacy Policy | Contact
© 2016 Testingfreak.
http://testingfreak.com/rununixlinuxcommandsinwindows/ 7/7