Someone as soon as stated which you could by no means be too wealthy or too skinny; you can too add which you could by no means have an excessive amount of space for storing. 1 method to save space on your Mac is to compress (or “zip”) files and folders in order that they take up much less space, and that is additionally a good suggestion should you plan to ship them to another person.
In this article, we’ll present you how to zip a file on your Mac, how to extract (or ‘unzip’) it and how to password defend the ensuing zip or archive file in order that solely the meant recipient can view it . Keir Thomas contributed to this article.
How to zip a file on Mac
Converting a standard file (picture, video, music file, doc or different sort) or folder right into a compressed zip file could be very straightforward on a Mac:
- Right-click (or Ctrl-click) the file or folder and choose “Compress.” ”.
- Wait a second (very giant files or folders with many files might take some time), and a new .zip file will seem in the identical location as the unique file (except you selected a distinct vacation spot – see beneath). You will hear the system warning sound to point out that the method is full.
That is it! This .zip file can now be emailed to a friend or simply saved till wanted. You can delete the unique file if you want, however, you can not view or use the zipped file in its present kind: it’s essential to first extract it.
Compress a number of files
To compress a number of files and / or folders, create a new folder (Shift + Cmd + N) in Finder or on the desktop and identify it what you need to identify the zip. Drag and drop the files you need to put into the zip, however, maintain down Alt earlier than releasing the mouse button to copy the files there. Then maintain down Ctrl and click on on the folder and choose the Compress possibility from the menu. Once the zipping is completed, drag the folder you created to the trash.
Note that Windows customers who decompress your zip can even see ‘level files’ – files and folders whose file names are preceded by intervals or generally underscores (corresponding to ‘.DS_Store’ or ‘_MACOSX’). These are Mac system files and could be ignored. You can use a free app like FolderWasher to delete level files earlier than creating the zip.
How to save zip files elsewhere
Open Archive Utility, click on the Archive Utility drop-down menu on the high of the display screen and choose Preferences. Click the menu labeled ‘Save Archive’, choose ‘in’ after which select a new vacation spot. (By default, the compressed file is saved in the identical place as the unique file.)
How to open (or ‘unzip’) a zip file on Mac
This is even simpler than the final bit. You simply want to double click on on a zip file and it’ll open itself. The zip file continues to be in its authentic location, however, an extracted copy seems subsequent to it.
If you might be decompressing an archive that isn’t a zip file, for instance a .rar file, install The Unarchiver. This is free from the App Store and works in precisely the identical method because the built-in zip software – merely double-click the archive file and the files and folders can be robotically extracted to the identical location.
Install the free HigherZip Quick Look Generator to view archive contents with macOS’s Quick Look function.
Automatically extract ‘protected’ files from zippers
Some web browsers robotically unzip what they contemplate to be protected files whenever you download them (in Safari, protected files include picture files corresponding to Jpeg, PDFs and films); this can be 1 thing you’ll fairly not do.
If you are in Safari, go to the Safari drop-down menu, then Preferences and choose the General tab. Then check the choice “Open” protected “files after downloading or uncheck it.
How to password defend zip files
Finally a problem! This is a bit more troublesome – however, value it should you’re going to ship a delicate file or doc by an unsecured messaging system. We can encrypt the zip file so that everybody – on Mac or PC – should enter the password to use or view the file or folder.
In truth, the method is de facto not scary: you solely have to spend a couple of moments in Terminal. The command -e will inform Terminal to encrypt the zip file.
Open Terminal (it is in Applications> Utilities, or you possibly can use Spotlight to seek for it) and sort within the following. (Type Enter after every line.)
We will fake that the file to be compressed known as .jpg and it’s situated on the desktop, however, you want to change the related bits in order that they’re appropriate for you. If it is a folder as a substitute of a file, we have now to use a barely totally different code, so see the folders part beneath.
zip -e .zip .jpg
At this level, Terminal will ask you to enter a password. As you sort this in, it appears like nothing seems, however, it’s designed this manner, so don’t fret – simply hit Enter whenever you’re finished and repeat when it asks you to confirm the password.
Whatever password you enter, it’s essential to enter it once more to decompress the zip file.
Let’s check out that code once more, however, this time we’ll use sq. brackets to point out the bits you want to change. Does not embrace the sq. brackets!
zip -e .zip .
Note that the zip file can have the identical filename as the unique (besides with a .zip extension), or a distinct 1.
Warning: areas in file or folder names!
If in any respect potential, we advocate renaming the identify of the file or folder you are compressing in order that it would not have areas within the identify as this does nice injury with Terminal. (You can substitute the areas with underscores, which look fairly neat.) If you completely want to embrace areas, you want to change the code in order that the areas are every preceded by a (you continue to want to embrace the space).
Let’s say we modified the identify of our authentic file from ‘.jpg’ to ‘mac world.jpg’. Now, as a substitute of
zip -e .zip .jpg
we might sort
zip -e mac world.zip mac world.jpg
This time, as a substitute of a file extension, you’ll use the ‘-er’ command as a substitute of ‘-e’. This tells Terminal to compress the contents of the folder.
If we think about compressing a folder referred to as we might sort:
zip -er .zip
How to open a password protected zip file
You (or the recipient of your encrypted zip file) haven’t got to fear about Terminal – simply double-click the zip file as standard after which enter the password when prompted. It zips within the regular method.
Alternative zip instruments
Most Mac customers have been utilizing zips for years with pleasure, however, a couple of individuals nonetheless use StuffIt, which stays a robust utility that may do issues that the built-in Mac zip software can’t do, like creating a greater variety of archive codecs .
To use it, drag the file or folder to the Zip tile within the StuffIt interface. The archive is created instantly.