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
Best linux commands articles:
Linux common commands tutorial and use examples
Sed command tutorials in linux/unix with examples and use cases
Awk command tutorials in linux/unix with examples and use cases