apc
apc

Reputation: 1607

Locating `subl` in OS X

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.

enter image description here

As you can imagine, Googling "which command yields no output" is not very helpful.

Upvotes: 0

Views: 65

Answers (2)

MattDMo
MattDMo

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

Amit
Amit

Reputation: 20466

Use locate to find all filenames with subl

locate subl

Upvotes: 0

Related Questions