Mac Terminal Zip Multiple Files

By Gina Barrow, Last updated: August 27, 2019

Mac Terminal Zip Multiple Files

A Zip file is a data container containing one or more compressed files or directories. Compressed (zipped) files take up less disk space and can be transferred from one to another machine more quickly than uncompressed files. Zip files can be easily extracted in Windows, macOS, and Linux using the utilities available for all operating systems. This will move all doc file under the current directory to the specific destination. To answer the comment: but the list of files to move is not determined by extension. Some of the files are named: ABC-IDENTIFIER-XYZ.ext and some just IDENTIFIER-XYZ.ext all having different extensions, mostly xml or properties. Locate the files or folders you want to archive using Mac Finder. Select the files you want to zip, and right click on their selection. Select Compress Items. Zip file is created and save in the current working directory. If single file is zipped, a.zip extension is added to the name of the file. If multiple files are zipped, “Archive.

Are you new to compressing folders onMac? Today we will find out everything there is to know about how folder compression works, how to process it, why it is important and what are the best ways to efficiently and easily compress folders on Mac.

Part 1. Brief Introduction to Compressing Folders

File compression began way back in the 1970s where scientists were searching for ways to reduce file sizes through working with algorithms. Since then, the development of various computing processes and technologies kept on evolving until today.

What is a Zip File?

A zip file is an archive format that is supported by lossless compression. It allows a number of compression algorithms which reduces the file size. Today, we can easily locate a zip file because its extension ends with .ZIP/.zip (for multimedia files: application/zip) and with the zipper icon.

It was first used publicly by Phil Katz in 1989, in replacement to the ARC compression format made by Thom Henderson.

How does compression work on Mac?

If you work with data transfers almost every day, files compression could be your ultimate solution for ease of use, size, and transfer time.

Just like we mentioned earlier, compressing files takes up lesser disk space, and files can be easily sent and received more quickly.

Compression is done by working with the computer codes and has two different types:

Types of Compression

There are two types of compression known today, first is lossless and the next is lossy. Lossless compression is focused more on searching long codes and replaces them with shorter ones and recreates the same exact file.

Mac Terminal Zip Multiple Files

Lossy compression, on the other hand, searches for codes it can delete and mostly used for multimedia files. A file on lossy compression seems to be identical but is entirely different at the code level.

Part 2. Advantages of Compressing Folders on Mac

Every byte counts if you're short on disk space or when you're sending a large file over the Internet. This is where file compression comes in. File compression has several advantages that users can highly benefit from.

Storage Space

Lossless compression, used in zip file technology, can reduce a file to 50 percent from its original size. Some files such as documents can be zipped and reduced to 90% from its original size. Thus file compression saves you a lot of space in your disk and you can use it for more important storage options.

Multiple

Transfer Speed

If you happen to notice that all your downloads are in kept inside zipped files, this is because it takes a faster time to transfer these data when they are compressed rather than individually.

These compressed files use lesser bandwidths (the speed used for network transfers).

Cost

Using archives or software for file compression can save you lots of money because it reduces the cost of purchasing a new hard drive for more storage. If all files inside your desktop are organized and compressed, you will have more space to use for other programs required by the system.

Part 3. How to Compress Folders on Mac Using PowerMyMac – Unarchiver

FoneDog PowerMyMac – Unarchiver is a powerful tool you can use in compressing and decompressing files on Mac. This special program has a complete toolkit that works seamlessly to any issues hindering you from getting the most from your device.

This software can be anything you need, a Mac cleaner, optimizer, keeper, uninstaller, unarchiver, and many more.

FoneDog PowerMyMac – Unarchiveralso supports decompressing of files from .RAR and .7z on Mac. Using this tool is so easy!

  • Simply launch FoneDog PowerMyMac – Unarchiverand proceed to Unarchiver under Toolkit. Meanwhile, you can also choose to scan your Mac to check its health status from the main menu.
  • Select or drag/drop the files you want to decompress. Click Compress to continue
  • Wait until the program successfully finishes decompressing

To compress files on your Mac and you got the program installed; all you need is to double-click on the file/s and it will be zipped into .RAR or .72 file format. All files you have compressed and decompressed will have the PowerMyMac icon beside.

Part 4. How to Compress Folders on Mac Manually

Compressing files or folders on Mac is so easy because it already has a built-in compression and decompression option which uses ZIP file format. Each Mac has different compression capabilities depending on its processor. Some file compression can take time especially if you are using older models. Macs with faster processors and bigger RAM can compress and decompress files quicker.

How to zip a file on Mac?

Right-Click

  1. Choose the file/folder you want to compress from Finder
  2. Right-click on the file to show the pop-up menu. You can also use CTRL + Click
  3. Select Compress + your file name
  4. Wait until Mac successfully compresses your file. You can now see that the file/s ends in .ZIP
  5. You can now delete the original file (optional)

People Also ReadHow to Clean up A Mac17 Reasons Why Your Mac Running Slow!

Using terminal

You can also opt to use the terminal in archiving and compressing files. Simply use the command:

zip archive.zip file.txt

Alternatively, you can use the drag & drop support, by typing ‘zip’ as usual but drop the file/s to compress into the Terminal command.

How to compress multiple folders at a time?

  1. Select the file/folder you need to compress in finder
  2. Right-click on the file/folder and select “Compress __ items”
  3. Wait until compression is done and check the file/folders ending in.ZIP
  4. Multiple files or folders compressed will end in Archive.zip

How to Open a Zip file on Mac:

  • Double-click the zip file/folder you need to decompress

If you are unzipping a single file, it will have the same file name as the original file but with a number appended.

For zip files containing multiple items, the unzipped files will be decompressed and saved in a folder that has the same name as the zip (for example Archive.Zip) but it will be named Archive only.

Part 5. Conclusion

Compressing files and foldersonMac does not need to be intimidating. If you want to practice saving more space and enjoy faster data transfer, you can conveniently use the built-in compressor on your Mac. Otherwise, if you need more tools to keep up with all you need, try FoneDog PowerMyMac. It has all the complete and comprehensive solution!

Do you have any concerns regarding compressing your files on Mac? Comment us below!

>Mac >New to Compress Folders on Mac? Here’s What You Need to Know
Comment ()

Since macOS is based on Unix there are a number of ways to compress files and folders within the filing system using Unix based application code, below are a few options using the Terminal or command line interface (cli). The default command line application interface in macOS is the Terminal and is stored in /Applications/Utilities.

File and folder compression saves on file size and ensures the contents are captured and delivered or stored as one monolithic file. A compressed file which contains files and folders is generally referred to as an archive. Here are some built-in compression applications you can use including zip, tar, gz, bz2, gz and dmg.

ZIP – Cross Platform

First up is ZIP one of the most commonly used compression techniques used across all platforms

To compress

To extract

If you want to make a zip without those invisible Mac resource files such as “_MACOSX” or “._Filename” and .ds store files, use the “-X” option in the command so:

TAR.GZ – Cross Platform

Mac Terminal Zip Multiple Files Free

Second up is TAR, an old favorite on Unix/Linux – you add the GZ for the compression – compresses tighter than zip

To compress

To extract

TAR.BZ2 – Cross Platform

A variation on TAR GZ but with better compression than both tar.gz and zip.

Zip Multiple Files Windows

To compress

To extract

GZ

Without the tar

To extract

DMG – macOS Only

This one is macOSnative only – for a GUI interface use /Applications/Utilities/Disk Utility – for command line use:

To create

To mount

To view

To Eject

Mac Terminal Zip Multiple Files Download

You can also use a number of different formats for creating a .dmg

  • UDZO – Compressed image (default)
  • UDRO – Read-only image
  • UDBZ – Better compressed image
  • UDRW – Read/Write image
  • UDTO – DVD disk image

Mac Terminal Zip Multiple Files Into One

That’s the low down, the more common compression packages available will typically be covered in one of the above.