Sunday, July 28, 2013

Use Linux Commands in Windows





Do you love Linux shell commands & miss them while using windows?
Now you can use Linux shell commands like touch, cat, grep etc from your windows command prompt. Just install  GNU core utilities  in your windows machine and your command prompt becomes magical.
Follow these simple steps:
  1. Download the core utilities from here   http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz
  2. Clicking on this link downloads a tar.xz file. Use 7zip to extract it. http://www.7-zip.org/
  3. Edit the path environment variable and add the path of the bin folder. For example if your bin folder is in C:\Program Files\GnuWin32\ then add C:\Program Files\GnuWin32\bin in the ‘path’ environment variable.  This post shows how to set environment variable in windows 

How to change environment variable in windows

Here are a sequence of images which will guide you in this tour. Images are self descriptive. For any confusion or feedback drop a comment below.




  1.  This is a folder where gnu core utilities are stored. We will create an entry to the 'path' variable so that we can use these commands from command prompt.



  

 



                                                                                                                
   




  





Do not forget to put a semicolon( to separate the new entry in the path variable from the previous) before you add this new entry.

Enjoy!!!!!!!!