您从Internet(Internet)下载的大多数文件通常采用存档格式(come in an archived format),并且具有用于存档和压缩文件的格式之一。第一次尝试在Mac(Mac)上打开这些ZIP、RAR、TAR和BIN文件似乎是不可能的,因为您的机器默认与这些格式不兼容。
尝试打开这些不兼容的文件格式只会在屏幕上引发错误,让您知道您尝试打开的文件无法打开。由于这些文件格式是一些流行的文件格式,并且您可能会不时遇到它们,因此您需要做一些事情来使您的Mac与这些格式兼容。
幸运的是,有多种方法可以为您的Mac添加对上述文件格式的支持。
使用 Unarchiver 在 Mac 上打开 ZIP、RAR、TAR、BIN 和 EXE(Open ZIP, RAR, TAR, BIN, And EXE On Mac With The Unarchiver)
如果您正在寻找可以处理上述所有文件格式的单个应用程序或实用程序,那么Unarchiver(The Unarchiver)就是可以完成所有任务的应用程序或实用程序。这是一款了不起的免费软件,它增加了对基本上所有存档格式的支持,并允许您在Mac机器上提取它们。
- 在您的Mac上启动App Store,搜索The Unarchiver,然后将其安装到您的机器上。
- 安装后,您需要将其设置为不受支持的文件格式的默认应用程序。为此,首先通过单击Launchpad、搜索The Unarchiver并单击应用程序来启动应用程序。
- 您很可能会进入该应用程序的“首选项”(Preferences)窗格。如果不这样做,请单击顶部的存档器菜单并选择(The Archiver)首选项(Preferences)以进入窗格。
- 确保您位于“存档格式”选项卡中,因为您可以在此处选择应用程序应在(Archive Formats)Mac上打开的格式。选择(Select)您希望应用程序打开的所有应用程序,一切就绪。
- 如果您没有选择文件格式的选项,则需要手动将应用设置为每种文件格式的默认应用。为此,请选择具有上述格式之一的任何文件,右键单击该文件,然后选择Get Info。
- 当获取信息(Get Info)菜单打开时,找到显示打开方式的选项(Open with)。使用下拉菜单从列表中选择The Unarchiver,然后单击显示Change All的按钮。它会将应用程序与格式为当前格式的所有文件相关联。
下次您双击文件时,Unarchiver将自动启动并为您打开文件。
对于要使用应用程序打开的每种文件格式,您都需要执行上述步骤。
在没有应用程序的 Mac 上打开 ZIP(Open ZIP On Mac Without An App)
由于ZIP是一种非常流行且广泛使用的格式,macOS 不得不破例并将其包含在其支持的文件格式中。您确实可以在 Mac 上打开 ZIP,(open ZIP on Mac)而无需安装任何第三方应用程序。
使用图形用户界面:(Using Graphical User Interface:)
- 要在Mac机器上打开ZIP ,请使用(ZIP)Finder找到文件。
- 双击(Double-click)ZIP文件,它将被提取到同一文件夹中。
然后,您将能够查看存档的提取内容。
在 Mac 上使用终端打开 ZIP(Using Terminal To Open ZIP On Mac)
终端(Terminal)应用程序还支持解压缩ZIP档案,而无需在Mac上安装任何东西。
- 在您的机器上使用您喜欢的方式启动终端。(Terminal)
- 输入以下命令并按Enter。它会将您的桌面设置为提取文件的目标文件夹。
光盘桌面(cd desktop)
- 键入以下命令,将sample.zip替换为文件的实际名称和路径。您可以将文件拖放到终端(Terminal)上并添加路径。
解压示例.zip(unzip sample.zip)
您的ZIP文件内容现在应该可以在您的桌面上使用。
使用两种方法在 Mac 上打开 RAR(Open RAR On Mac Using Two Methods)
如果它只是你想在你的Mac上打开的(Mac)RAR格式,你有两种方法可以做到。
在 Mac 上使用 Extractor 打开 RAR(Using Extractor To Open RAR On Mac)
App Store上有一个免费应用程序,可让您在计算机上提取RAR以及其他一些存档格式。
- 启动 App Store,搜索Extractor并将其下载到您的 Mac。
- 打开应用程序,您会看到一个界面,要求您添加存档。将您的RAR存档(RAR)拖放(Drag)到应用程序上,它会为您打开它。
在 Mac 上使用终端打开 RAR(Using Terminal To Open RAR On Mac)
您也可以使用终端(Terminal)打开RAR文件,但您需要先安装一个实用程序。
- 在 Mac 上启动终端。(Terminal)
- 输入以下命令并按Enter。它将安装 Homebrew(install Homebrew),这是一个软件管理系统。
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 安装Homebrew(Homebrew)后,运行以下命令来安装一个名为Unrar的实用程序。
冲泡安装解压缩(brew install unrar)
- 等待(Wait)实用程序安装。完成后,使用以下命令在Mac上打开(Mac)RAR文件。请务必将sample.rar替换为您的 RAR 文件。cd 桌面(cd desktopunrar x sample.rar)unrar x sample.rar
仅使用终端在 Mac 上打开 TAR(Open TAR On Mac Using Just The Terminal)
就像ZIP一样,Mac也内置了对TAR的支持,您可以在(TAR)Mac上打开TAR文件而无需安装任何实用程序。
- 在 Mac 上打开终端。(Terminal)
- 键入以下命令,然后按Enter。将sample.tar替换为您的 TAR 文件。
cd 桌面
tar -xzf sample.tar(cd desktoptar -xzf sample.tar)
它会将您的TAR存档的内容解压缩到您的桌面。
Open Zip, RAR, TAR, and BIN Files on a Mac
Most files that you download from the Internet usually come in an archived format and have one of the formats used for archived and compressed files. Opening these ZIP, RAR, TAR, and BIN files on a Mac may seem impossible on the first try as your machine is just not compatible with these formats by default.
Trying to open these incompatible file formats will only throw errors on your screen letting you know the file you’re trying to open can’t be opened. Since these file formats are some of the popular ones and you likely come across them now and then, you’ll want to do something to make your Mac compatible with these formats.
Luckily, there are multiple ways to add support for the aforementioned file formats to your Mac.
Open ZIP, RAR, TAR, BIN, And EXE On Mac With The Unarchiver
If you’re looking for a single app or utility that can handle all of the file formats mentioned above, The Unarchiver is the one that can do it all. It’s an amazing piece of free software that adds support for basically all of the archive formats out there and lets you extract them on your Mac machine.
- Launch the App Store on your Mac, search for The Unarchiver, and install it on your machine.
- When it’s installed, you’ll need to set it as the default app for your unsupported file formats. To do this, first launch the app by clicking on Launchpad, searching for The Unarchiver, and clicking on the app.
- Most likely you’ll land in the Preferences pane for the app. If you don’t, click on The Archiver menu at the top and select Preferences to get to the pane.
- Make sure you’re inside the Archive Formats tab as this is where you can choose what formats the app should open on your Mac. Select all the ones you want the app to open and you’ll be all set.
- If you don’t get the option to select file formats, you’ll need to set the app as the default app for each file format manually. To do this, select any file with one of the formats mentioned above, right-click on the file, and select Get Info.
- When the Get Info menu opens, find the option that says Open with. Use the dropdown menu to select The Unarchiver from the list and then click on the button that says Change All. It’ll associate the app with all the files having the format as your current one.
Next time you double-click on your file, The Unarchiver will automatically launch and open the file for you.
You’ll need to do the above steps for each file format you want to open with the app.
Open ZIP On Mac Without An App
Since ZIP is an extremely popular and widely used format, macOS had to make an exception and include it in their supported file formats. You can indeed open ZIP on Mac without the need to install any third-party apps.
Using Graphical User Interface:
- To open a ZIP on your Mac machine, locate the file using the Finder.
- Double-click on the ZIP file and it’ll be extracted in the same folder.
You’ll then be able to view the extracted contents of the archive.
Using Terminal To Open ZIP On Mac
The Terminal app also supports extracting ZIP archives without installing anything on your Mac.
- Launch Terminal using your preferred way on your machine.
- Type in the following command and hit Enter. It’ll set your desktop as the destination folder for the extracted files.
cd desktop
- Type in the following command replacing sample.zip with the actual name and path for your file. You can drag and drop your file onto the Terminal and the path will be added.
unzip sample.zip
Your ZIP file contents should now be available on your desktop.
Open RAR On Mac Using Two Methods
If it’s just the RAR format you want to open on your Mac, you have two ways to do it.
Using Extractor To Open RAR On Mac
There’s a free app on the App Store that lets you extract RAR as well as a few other archive formats on your machine.
- Launch the App Store, search for Extractor, and download it to your Mac.
- Open the app and you’ll see an interface asking you to add an archive. Drag and drop your RAR archive onto the app and it’ll open it for you.
Using Terminal To Open RAR On Mac
You can open RAR files with Terminal as well but you’ll need to first install a utility.
- Launch Terminal on your Mac.
- Type in the following command and hit Enter. It’ll install Homebrew which is a software management system.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- When Homebrew is installed, run the following command to install a utility called Unrar.
brew install unrar
- Wait for the utility to install. When it’s done, use the following commands to open your RAR file on your Mac. Be sure to replace sample.rar with your RAR file.
cd desktop
unrar x sample.rar
Open TAR On Mac Using Just The Terminal
Just like ZIP, Mac has built-in support for TAR as well and you can open TAR files on your Mac without installing any utilities.
- Open Terminal on your Mac.
- Type in the following command and press Enter. Replace sample.tar with your TAR file.
cd desktop
tar -xzf sample.tar
It’ll decompress the contents of your TAR archive to your desktop.