Change your directory to the location of your folder. For example, in my instance that would be to type cd /Volumes/dataMAC and hit enter. Type in ls to make certain you see your folder. Now type in the command that will simultaneously compress and password protect the files in the form of zip -er FILENAME.zip FILESorFOLDERStoCOMPRESS.
So you just went on a vacation with friends, and they’re asking for copies of your photos. You visited so many places that you decide to organize them into folders. But then, how exactly are you going to upload the folders as attachments in an email? Well, the easiest way to do that is to turn them into a ZIP file. Here’s how to zip a file or folder on a Mac or a Windows PC.
Unlike regular digitalfiles, a ZIP file is a collection of files that have been compressed into asingle file. It’s like a bunch of coins put into a single pouch and zippedclosed, so it can be easily moved, transferred, or sent. Aside from being ableto easily transport or email several files at once, zipping a file will alsodecrease the size of the files and offer you password protection.
Mac and Windowscomputers have their own built-in compression features that can easily zipfiles or folders.
If you need to emailseveral files, you can spare yourself the hassle of attaching each fileindividually to your email. You can create a ZIP file or zip a bunch of filesand attach them in batches.
If you’re using a Maccomputer, you can create zip files by following these steps:
The University of New Mexico offers a wide variety of academic programs through twelve Colleges and Schools. These academic options include more than 215 degree and certificate programs, including 94 baccalaureate, 71 masters and 37 doctoral degrees. Zip -9 -r -exclude=.svn. foo.zip directory-to-compress You can also add a-exclude=.DSStore. to exclude the annoying Mac OS X directory display metadata files. Notice that the expression passed to -exclude is using the entire original relative. Locate the new contents in the same location as the.zip folder. Create.zip files on macOS. Creating a.zip file is a great way to condense one or more files or folders into a single one. The compressed.zip file is useful for email or sending multiple files in one package. Right-click the file or folder and choose Compress. How to Zip a File or Folder on Mac Click the Finder icon in your Mac's Dock to make sure it's the active application. Right-click (or Control-click ) on the file or folder you want to compress.
If you’re using aWindows PC, and you want to create a zip file for easy transport, or you planto email several files, follow the steps below:
If you want to know how to open a zip file on a Mac or PC, check out our guide here.
HelloTech editors choose the products and services we write about. When you buy through our links, we may earn a commission.