How to know the path of a particular software?
Find the path of an executable
Best way
type executable
Check out this question to learn more about how type
is better. (Thanks, comments!)
Other ways
whereis executable
which executable
Those commands only search in the PATH variable (echo $PATH
), thus they are not valid in some cases (built-in functions, aliases, or bash functions, and more).