macos - 无法在 Mac 终端中找到应用程序文件夹

标签 macos find locate

我试了下面的代码不成功

find Applications | xargs -0 grep Applications

下面的我也试过了

find Applications

最佳答案

是不是像这样:

mdfind Applications | grep Applications

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

以下命令将查找您在 /Applications 下某处安装的 Mac 应用程序的名称。

find /Applications -type d -name "*.app"

你的问题措辞很难帮助,因为你没有说明你的总体意图是什么......

关于macos - 无法在 Mac 终端中找到应用程序文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/641017/

相关文章:

regex - posix 扩展正则表达式中的变量扩展

linux - 有没有办法在树中显示查找定位结果?

delphi - 在delphi中的计算字段上使用locate函数

macos - pathForResource 在 Mac OS X 控制台应用程序中返回 nil — Swift

objective-c - macOS开发中如何关闭新窗口?

python - Anaconda 在 MAc OS 上安装错误

macos - 相当于 OSX 上的/dev/input

arrays - 在 MongoDB 的对象数组中查找匹配多个字段的文档

python - Pandas - 提取以特定字符开头的字符串

mysql - 选择特定字符串后的下 10 个字符