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 

2 comments :

  1. Alternatively, you can try Cygwin.exe.

    ReplyDelete
  2. Yes, Cygwin has a coreutils package. Visitors can give it a try.

    http://www.cygwin.com

    Thanks Nilanjan Basu. :)

    ReplyDelete