我在我的 mac 上安装了 git
和 maven
。我知道它有效。但我很想知道这些命令在哪里找到
/bin
中可以找到mv,ls,cd
等常用命令。我在 /bin
中找不到 git
、maven
、grep
。我没有 .bashrc 或 .bash_profile
。我也没有在 env
中看到它们。
我在哪里可以看到它们?
最佳答案
来 self 的 Ubuntu:
$ which git
/usr/bin/git
$ which mvn
/usr/bin/mvn
$ which grep
/bin/grep
哪个
应该在 Mac OS X 上工作。
whereis
也是一个不错的选择。来 self 的 ubuntu:
$ whereis git
git: /usr/bin/git /usr/share/man/man1/git.1.gz
$ whereis mvn
mvn: /usr/bin/mvn /usr/share/man/man1/mvn.1.gz
$ whereis grep
grep: /bin/grep /usr/share/man/man1/grep.1.gz
关于linux - git 和 mvn 命令在 mac/Linux 中去哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20964186/