Categories: None [Edit]
whiches
Cross-platform way of finding executables in all the paths in $PATH.
This is similar to the Unix 'which' command, however, instead of finding the first
occurence of the executable in $PATH, it finds all occurences in $PATH.
This could be useful if you installed something that modified your PATH and now you're
executing a different version but can't figure out what happened.
Example:
On OS X, OpenSSL is installed in /usr/bin/openssl
% which openssl
==> /usr/bin/openssl
After installing PostgreSQL:
% which openssl
==> /Applications/Postgres.app/Contents/MacOS/bin/openssl
If you're trying to diagnose what happened, you can use:
% whiches openssl
==>
[
[0] "/Applications/Postgres.app/Contents/MacOS/bin/openssl",
[1] "/usr/bin/openssl"
]
This will show you that the first one that is found in the PATH is the one from Postgres,
so if you want to get back your original one, you have to modify your PATH accordingly.
Total
Ranking: 105,364 of 183,155
Downloads: 6,505
Daily
Ranking: 36,148 of 183,147
Downloads: 2
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
163,801 | 2,479 | bsd_wtf |
Depends on
Rank | Downloads | Name |
---|---|---|
157 | 237,261,140 | awesome_print |
Owners
# | Gravatar | Handle |
---|---|---|
1 | simplytech |