Wednesday, April 29, 2009

Which binary file am I running in Cygwin?

If you want to find out which of the binary versions of some file you are running under Cygwin you can try two commands: "which" and "type".

type -a ruby

Should return something similar to:

16:55:17 ~$ type -a ruby
ruby is /usr/bin/ruby
ruby is /bin/ruby
ruby is /usr/bin/ruby


So would this:

which ruby

Cheers!

Find this article also on definenull.com.

No comments: