mac应用程序在哪

MacOS applications are installed a bit differently than Windows. Since they’re almost always single .app files, you can move them around your hard drive much easier. Here’s how to track down the ones you lost.

MacOS应用程序的安装与Windows有所不同。 由于它们几乎总是单个.app文件,因此您可以更轻松地在硬盘上移动它们。 这是查找丢失的邮件的方法。

从应用程序文件夹 (From the Applications Folder)

This method is obvious—just open your Applications folder. You can usually find this in the sidebar, at the top of your hard drive, or in your Home folder (the one with your name on it). You can press the “List” button in the top bar to view everything in an easy to read list.

这种方法很明显-只需打开Applications文件夹即可。 通常,您可以在侧栏,硬盘驱动器顶部或主文件夹(上面有您的名字的文件夹)中找到此文件。 您可以按顶部栏中的“列表”按钮,以易于阅读的列表查看所有内容。

This won’t list every single Application on your drive though, so if you have an app you left in your Downloads folder, it won’t show up here.

但是,这不会列出驱动器上的每个应用程序,因此,如果您有一个应用程序留在“下载”文件夹中,则不会在此处显示。

更好的方法:智能文件夹 (Better Method: Smart Folders)

Smart folders are wonderful. They’re like saved searches that you can pin to the sidebar of Finder. Here, we’ll be searching for all Applications.

智能文件夹很棒。 它们就像保存的搜索一样,您可以将其固定到Finder的侧边栏。 在这里,我们将搜索所有应用程序。

Make a new smart folder from any Finder window by selecting File > New Smart Folder from the top menu bar.

通过从顶部菜单栏中选择“文件”>“新建智能文件夹”,从任何“ Finder”窗口创建一个新的智能文件夹。

This will open what looks like a search window. You can add a new rule by clicking the + button next to “Save.” There will be a dropdown that lets you choose the rule the smart folder will search by. The default option will search by filename.

这将打开看起来像搜索窗口的窗口。 您可以通过单击“保存”旁边的+按钮添加新规则。 将出现一个下拉列表,可让您选择智能文件夹搜索所依据的规则。 默认选项将按文件名搜索。

But you’ll want to change “Name” to “Kind” and specify “Application.”

但是您需要将“名称”更改为“种类”并指定“应用程序”。

You’ll see the folder quickly fill up with Applications. If you want to save this smart folder, click “Save” in the top right corner. Put in a name and choose where to save it.

您会看到该文件夹​​Swift充满了Applications。 如果要保存此智能文件夹,请单击右上角的“保存”。 输入名称,然后选择保存位置。

The default location is a “Saved Searches” folder, but you can save it anywhere you’d like. Either way, it’ll be added to the sidebar for easy access.

默认位置是“保存的搜索”文件夹,但您可以将其保存在任何位置。 无论哪种方式,都将其添加到侧边栏中以便于访问。

使用系统信息 (Using System Information)

The System Information app has a tab for showing every .app file installed on your system. Open the app by holding down the Option key and clicking on the Apple logo; the first item will be System Information.

系统信息应用程序具有一个选项卡,用于显示系统上安装的每个.app文件。 按住Option键并单击Apple徽标,以打开应用程序; 第一项将是系统信息。

Scroll down to Software > Applications and give it a minute to search your disk and populate the list. This list contains every .app file, even system and internal ones, so modify them at your own risk.

向下滚动至“软件”>“应用程序”,然后花一分钟时间搜索磁盘并填充列表。 此列表包含每个.app文件,甚至包括系统文件和内部文件,因此修改文件时需您自担风险。

命令行选项 (Command Line Options)

If you’d like an easily modifiable list of app file paths for technical reasons, you can search your drive with a terminal command. We’ll use find, and use the -iname flag to search for files by name. The syntax for searching for .app extensions is:

如果出于技术原因想要一个可轻松修改的应用程序文件路径列表,则可以使用终端命令搜索驱动器。 我们将使用find ,并使用-iname标志按名称搜索文件。 搜索.app扩展名的语法为:

sudo find / -iname *.app

sudo find / -iname *.app

Open up the Terminal app by clicking on it in the Dock, paste the above command in, and press enter. It will take a while to search, and it will output an extremely long list which includes a lot of internal and system applications. We’d recommend piping the output to a file.

通过在Dock中单击打开终端应用程序,将上面的命令粘贴到其中,然后按Enter。 搜索将花费一些时间,并且将输出一个非常长的列表,其中包括许多内部和系统应用程序。 我们建议将输出管道传输到文件。

sudo find / -iname *.app > filename

sudo find / -iname *.app > filename

This searches the root directory and includes everything on your hard drive. You’ll notice a lot of repeated directories from apps inside of apps, such as Xcode’s internal applications. You can get rid of these results with sed and a bit of regex to match and remove .app files inside of .app files:

这将搜索根目录,并包括硬盘上的所有内容。 您会注意到应用程序内部的应用程序(例如Xcode的内部应用程序)中有很多重复的目录。 您可以使用sed和一些正则表达式摆脱这些结果,以匹配和删除.app文件中的.app文件:

sed -i '/\.app.*\.app/d' filename

sed -i '/\.app.*\.app/d' filename

This will remove every entry matching the pattern from the list of apps you created. This modifies the file directly, so be careful not to run it on anything else.

这将从您创建的应用列表中删除所有与模式匹配的条目。 这将直接修改文件,因此请注意不要在其他任何文件上运行它。

翻译自: https://www.howtogeek.com/409377/how-to-list-all-applications-on-a-mac/

mac应用程序在哪