linux which command – locate a command in the user’s path.
Which command does this by searching the PATH for executable files matching the names of the arguments. It returns the pathnames of the files (or links) which would be executed in the current environment.
which [-a] filename ...
print all matching pathnames of each argument
Locate a command
➜ ~ which env
Print all matching pathnames of each argument
➜ ~ which -a env