Wednesday, July 18, 2012

Locating executable or binary for a command

Linux can be so fun and yet easy. This commands most probably you would have known but it is so important if you want to see where the binary is called. The good command is R

1. If you are looking for binary for a particular program. For example R
$ whereis -b R

R: /usr/bin/R /usr/lib/R /usr/local/bin/R /usr/include/R /usr/share/R


2. If you are looking for source for a particular program. For example R
$ whereis -s R


3. If you are looking for manual for a particular program. For example R
$ whereis -m R

R: /usr/share/man/man1/R.1.gz

No comments: