Sample Header Ad - 728x90

Why not use "which"? What to use then?

506 votes
6 answers
98589 views
When looking for the path to an executable or checking what would happen if you enter a command name in a Unix shell, there's a plethora of different utilities (which, type, command, whence, where, whereis, whatis, hash, etc). We often hear that which should be avoided. Why? What should we use instead?
Asked by Stéphane Chazelas (579282 rep)
Aug 1, 2013, 10:58 PM
Last activity: Feb 7, 2025, 04:19 AM