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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 06:04:12  来源:igfitidea点击:

Unable to find Applications folder in Mac's terminal

macosfindlocate

提问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

mdfindis a command line interface to Spotlight. Somehow, I doubt this is what you were looking for.

mdfindSpotlight的命令行界面。不知何故,我怀疑这就是你要找的。

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