Take the 2-minute tour ×
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.

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
add comment

1 Answer 1

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
1  
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
add comment

Your Answer

 
discard

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.