Reputation: 1607
I have the subl
command line tool installed in my machine (OS X 10.9.2). It works fine. But I need to know where it is. So I type:
which subl
in a Terminal window. But the behavior is as if the command did not exist.
As you can imagine, Googling "which command yields no output" is not very helpful.
Upvotes: 0
Views: 65
Reputation: 102862
To find if something is an alias, a shell builtin, or an executable program, use type
:
# on my system
$ type dir
dir is aliased to `ls -FaGl`
$ type pwd
pwd is a shell builtin
$ type du
du is /usr/bin/du
It's much faster than using an unindexed locate
command.
Upvotes: 1