How can I find the path to an executable in OSX

which will search your path for the arguments you supply, it’s found on just about any BSD or SysV UNIX

moriarty:~ dave$ which bash true false
/bin/bash
/usr/bin/true
/usr/bin/false

Leave a Comment