mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
22 lines
523 B
Markdown
22 lines
523 B
Markdown
# Where Are The Binaries?
|
|
|
|
When I want to know where an executable is, I use `which` like so:
|
|
|
|
```
|
|
$ which rails
|
|
/Users/jbranchaud/.gem/ruby/2.1.4/bin/rails
|
|
```
|
|
|
|
That is the rails binary on my path that will be used if I enter a rails command.
|
|
|
|
However, with something like rails, there may be multiple versions on your
|
|
path. If you want to know where all of them are, you can use `where`, like
|
|
so:
|
|
|
|
```
|
|
$ where rails
|
|
/Users/jbranchaud/.gem/ruby/2.1.4/bin/rails
|
|
/Users/jbranchaud/.rubies/2.1.4/bin/rails
|
|
/usr/bin/rails
|
|
```
|