I am calling a 'executable' on Linux. One way by console and another from PHP script. They both call other executable (i see it by version of file). So I need a way to display a path to executable that will be called when I try to run it. How to do this in Linux?
You can use
You can also get the full path with
Note that the PATH can be different between users, so if your PHP script is executed with the
You can use :
To see where the binaries or located.