Originally Posted by reddazz
If you are using an rpm based distro running something like "rpm -ql mysql" will show you where all the files were placed. Another very good command is "which". It only looks in your path, so shows you where executables are.
As far as I understand, that only holds through for programs that were installed via RPM? What about makefile type of installs?
I ran whereis php
and got the following:
php: /usr/bin/php /etc/php.d /etc/php.ini /usr/lib/php /usr/lib/php.ini /usr/local/bin/php /usr/local/lib/php.ini,v /usr/local/lib/php /usr/local/lib/php.ini /usr/include/php /usr/man/man1/php.1 /usr/share/man/man1/php.1.gz
How do I know which one is being used?
Is it /usr/bin/php