For example, I have git installed on my system.
But I don't remember where I installed it, so which command is fit to find this out?
|
|
||||
|
If it is in your path, then you can run either If it is not in your path, then it's best to look for it with |
|||||||||||||
|
|
The other answers here seem to be largely geared towards modern versions of Linux, so if you happen to use
One some older versions of the systems listed above, you may need a
And if you do use |
|||||||||||
|
|
that is just if the git is in you PATH variable, in case you have installed it not through you package manager, it is more complex and you should use the |
|||||||||
|
|
To get the path to the installed program you either use |
|||||
|
|
The POSIX standard way to do this is |
|||
|
whichcommand" indeed :) – Tikhon Jelvis Jan 8 '12 at 0:31