我需要知道我的Mac OS上安装了Grails和/或Groovy的目录路径(不确定它们是否相同)?
答案 0 :(得分:6)
似乎where
(bash)或which
(ZSH)是您需要的命令:
~/ where groovy
/Users/opal/.sdkman/candidates/groovy/current/bin/groovy
~/ where grails
/Users/opal/.sdkman/candidates/grails/current/bin/grails
~/ which groovy
/Users/opal/.sdkman/candidates/groovy/current/bin/groovy
~/ which grails
/Users/opal/.sdkman/candidates/grails/current/bin/grails
顺便说一句:尝试使用sdkman。强烈推荐!