Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From the home directory
which ruby.exe & find ruby.exe return "no such file or directory" However, I'm able to execute .rb programs in rubymine.

share|improve this question
up vote 2 down vote accepted

Try this instead:

which ruby 

If you would also like to be told when certain commands are shell builtins, you can use this:

type ruby

In Unix like operating systems the filename suffixes which traditionally denote executable files on DOS and Windows such as .exe, .com, and .bat do not apply! Instead, file permissions bits are used to denote which files are executable.

share|improve this answer
It is worth noting that in Unix-likes the filename suffixes which traditionally apply to executable files on DOS and Windows such as .exe, .com do not apply. There are file permissions bits to denote executable files (which might be or might be not binary executables, whereas Windows executables are always binary.) – alex Jun 30 '11 at 4:05
@alex: +1.added. – Prince John Wesley Jun 30 '11 at 4:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.