How to unzip files on MacOS
The following guide outlines steps involved when unzipping a file with the utilities provided by MacOS.
- With Finder, locate the zip file which you wish to decompress/unzip.
- Double click it.
- This will create a folder with the same name as the zip file in the current working directory and extract the content of zip file into it.
How to unzip using WinZip in MacOS
If you don’t want to work with zip files through MacOS built in utility, download WinZip application and install it.
- Open WinZip.
- Click on unzip button.
- From the dropdown list, choose unzip this zip file to your Mac, iCloud drive, Google Drive or Dropbox.
- Now, select the contents of zip file you want to unzip. You can also use Finder to view contents of zip file.
Unzip with WinZip using the context menu
This is an easier method to launch the application and decompress the files.
- Choose all zip files by pressing CTRL + A, or choose some of them by pressing CTRL + Right click and choose services from the context menu.
- Click on Unzip. This will extract zip file contents into the present working directory.
Unzip using Command Prompt in MacOS
If you want to unzip like a pro, then command prompt is the way to go!
- Open the command prompt with terminal
- Open Applications folder followed by the Utilities folder. Double click on Terminal.
- Alternately open spotlight. Press Command+Spacebar and type terminal.
- Go to the correct directory where the zip file is located. E.g. If the zip file is located in your Documents folder, enter the following command in the command prompt:
- Now type following command
- The contents of the zip file will decompress into your Documents folder.
Additional useful unzip command options
- Only list the contents of the zip file. No file will be extracted.
unzip -l zipfile.zip
- Extract only certain files from the zip archive. E.g. Only file1.txt and file3.txt
unzip zipfile.zip file1.txt file3.txt
- Extract every file EXCEPT the ones listed. E.g.: Don't extract file2.txt
unzip zipfile.zip -x file2.txt
- The above commands accept wildcards as options too. The * is a wildcard for multiple characters. ? is a wildcard for a single character.
unzip zipfile.zip "file*.t?"
- Unzip the files to a different directory
unzip zipfile.zip -d ./other-directory