When I’m working in Windows I often find it hard to do things at the command line that are so simple to do in Unix/Linux. Things like searching for a string in a long list of output, or paging through a log file can be difficult. What if you could add your favorite *nix utilities to windows? Well the good news is that you can!
Click here to download a pack of many common Unix utilities that have been compiled to run in a native win32 environment.
The pack includes over a hundred binaries, some of my favorites are listed below.
I suggest creating a directory such as c:\bin and extracting the contents of usr/local/wbin (found in the archive you downloaded) into it. In order to make these utilities readily available you should add c:\bin to your path.
Steps to update your path on Windows 7
- Right click on Computer, click on properties.
- Click on Advanced system settings
- On the Advanced tab click ‘Environment Variables’
- Under ‘System variables’ select ‘Path’ and click Edit.
- At the end of the path line add a semicolon followed by c:\bin
To verify your new path setting open up a new command prompt and type ‘echo %path%’ You should see c:\bin at the end of the output, make sure there is a semicolon separating it from the previous statement. You should now be able to run the utilities no matter which directory you are in.
If you know of any useful command line tricks for windows please comment.