which

which [ -wm ] name ...

Same as whence -c.