[英]where does the git and mvn command go in mac/Linux?
我已經在Mac上安裝了git
和maven
。 我知道這行得通。 但是我很想知道在哪里找到這些命令
在/bin
可以找到諸如mv,ls,cd
類的常用命令。 我在/bin
找不到git
, maven
, grep
。 我沒有.bashrc nor .bash_profile
。 我不認為他們會在env
了。
我在哪里可以看到他們?
從我的Ubuntu:
$ which git
/usr/bin/git
$ which mvn
/usr/bin/mvn
$ which grep
/bin/grep
which
應該在Mac OS X上運行
whereis
也是一個不錯的選擇。 從我的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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.