ARCHIVED: In Mac OS X, how do I compress or decompress files?
Compressed (i.e., archived or zipped) files may contain many separate files in one large archive, which often take up less space than the original files. Before you can read or run all the separate files and programs, you must use an archiving program to extract the files from the archive. Zip is a standard compression and archival format. If you're using Mac OS X, the operating system compresses and decompresses zip files for you.
Compressing a file or folder
- Highlight the selection to be compressed.
- Somewhere within the selected files, right-click, and then choose
Compress. If you do not have a mouse with a right-click button, highlight the selection and hold down the
Controlkey while clicking the trackpad.
.zipfile will be created in the same directory as your selected files. Note that your original files (from which the compressed file was made) are not deleted automatically, and will remain in the directory.
Note: You cannot name the zip file during its creation (the name given by default is
archive.zip), but you can rename it afterward. If you choose to create another compressed archive in the same folder without first moving or renaming the original one, there is a chance you will overwrite the original one.
Decompressing a file or folder
- Highlight and right-click the archive you wish to decompress.
Open. This will decompress the file or folder and place it in the same directory as the compressed file.
Note: The compressed file is not deleted automatically and will remain in the directory also.
Using the Terminal
The Unix zip utilities are also available from the Terminal application. See About compressed files in Unix.
Last modified on December 05, 2012.