If you have installed multiple versions of an application into your system, you may wonder which command is being run from the command line when you launch it. This is especially useful to figure out the path of php when running on a shared server, as many shared servers have both php4 and php5 installed.
To find the path of the application, you can use the which command, followed by the executable that you would have run.
# which svn
# which php
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 12/1/06