日期:2014-05-16 浏览次数:20931 次
which 用来查看可执行文件的位置。
1.命令格式:
which 可执行文件名称
which指令会在PATH变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果。
-V 显示版本信息
bixiaopeng@bixiaopengtekiMacBook-Pro ~$ which pwd /bin/pwd bixiaopeng@bixiaopengtekiMacBook-Pro ~$ which android /Volumes/warehouse/dev-tools/adt-bundle-mac-x86_64-20130522/sdk/tools/android bixiaopeng@bixiaopengtekiMacBook-Pro ~$ which apktool /usr/local/bin/apktool bixiaopeng@bixiaopengtekiMacBook-Pro ~$ which which /usr/bin/which bixiaopeng@bixiaopengtekiMacBook-Pro ~$ which mvn /Volumes/warehouse/dev-tools/plugin/apache-maven-3.0.5/bin/mvn bixiaopeng@bixiaopengtekiMacBook-Pro ~$ which mysql /usr/local/mysql/bin//mysql