macos 无法在 Mac 的终端中找到 Applications 文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/641017/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to find Applications folder in Mac's terminal
提问by Léo Léopold Hertz ??
I tried the following code unsuccessfully
我尝试了以下代码失败
find Applications | xargs -0 grep Applications
I also tried the following unsuccessfully
我也尝试了以下失败
find Applications
回答by popcnt
Was it something instead like:
是不是像这样:
mdfind Applications | grep Applications
mdfind
is a command line interface to Spotlight. Somehow, I doubt this is what you were looking for.
mdfind
是Spotlight的命令行界面。不知何故,我怀疑这就是你要找的。
The following command will find the names of Mac apps you have installed somewhere under /Applications
.
以下命令将在/Applications
.
find /Applications -type d -name "*.app"
Your question as phrased is pretty hard to help with, since you are not stating what your overall intent is...
你的问题很难回答,因为你没有说明你的总体意图是什么......
回答by RibaldEddie
It's in /Applications.
它在/应用程序中。
Try
尝试
find /Applications