Mac Terminal Zip Multiple Files

To compress files in a TarGZ archive, open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. From there, make use of the tar command example below to learn how to compress files and folders. To compress a file (or multiple files), execute the following command example. The md5 command will check multiple files for you. Simply list all the files you want after the command. Md5 md1.gz md2.gz md3.gz. It will output the md5 hashes like so: If you want just the hashes, use the -q flag, it will print only the hash, without the identifying information. I'm guessing that you want to compare the hash of the files.

  1. Mac Terminal Zip Multiple Files Batch
  2. Zip Multiple Files Windows
  3. Mac Terminal Zip Multiple Files 1
TerminalFiles

Instructions for using the Terminal to create password protected zip files in Mac.

Multiple
  1. Create a Folder on the Desktop.
  2. Place the Files you wish to Zip within the folder.
  3. Select the Search Icon in the upper right corner.
  4. Search for the Terminal.
  5. Select Terminal.
  6. Enter zip -er NAMEOFZIPFILE.zip
  7. Enter a space.
  8. Drag and Drop the Folder on the desktop into the terminal.
  9. Select Enter/Return.
  10. Enter a Password.
    NOTE: It will not visually display anything to know you are typing when entering a password.
  11. Reenter the Password.
  12. Select Enter/Return.
  13. To get to the new ZIP file, select Finder then All My Files.

Mac Terminal Zip Multiple Files Batch

Did you find this article useful?

Mac

Zip Multiple Files Windows

You Might Also Be Interested In

When you come across split ZIP files that look like sequential part numbers, before extracting files out of the archive, you first need to join the split files together into a single, complete, ZIP file. A split ZIP file could look like this, for instance:

691-5088-A.zip_.001
691-5088-A.zip_.002
691-5088-A.zip_.003
691-5088-A.zip_.004

NOTE: Just so it's clear to everybody, this article talks about ZIP but it obviously works on ANY type of file. It doesn't matter if it's a ZIP or DMG or TEXT or any kind of file, that is irrelevant. It's just a split file. It has nothing specific to do with ZIP. You can think of 'ZIP' here in this article as 'A FILE'. e.g. ASD_ssps_004-0303-A.001.dmg + ASD_ssps_004-0303-A.002.dmg will become ASD_ssps_004-0303-A.dmg

Under Windows

Open a command prompt and navigate to the folder containing all the ZIP part files. Once you're under that folder, adapt the following command (here based on the part files listed in example above) to your situation:

copy /B 691-5088-A.zip_.* 691-5088-A.zip

NOTE: Remember that '.zip' is only an example here. If your file is, e.g. a DMG, then it should end with '.dmg', not '.zip'.

What this does is to create a combined file (copy) from all the ZIP parts and save it as 691-5088-A.zip which you can then expand normally.

Under Mac OS X or Linux

Open a Terminal window and navigate to the folder containing all the ZIP part files. Once you're under that folder, adapt the following command (here based on the part files listed in example above) to your situation:

cat 691-5088-A.zip_.* > 691-5088-A.zip

NOTE: Remember that '.zip' is only an example here. If your file is, e.g. a DMG, then it should end with '.dmg', not '.zip'.

What this does is to combine (cat) all the files into a single file named 691-5088-A.zip which you can then expand normally.

Under classic Mac OS (9, 8 or 7)

Use ChunkJoiner. Select all the .001, .002, .003, etc ZIP part files all at once then drag and drop the files selection onto the ChunkJoiner app icon and save the recombined output a file name. If dragging and dropping files onto the app icon doesn't work, rebuild the desktop once before using this app so that the Finder knows that this app accepts all file types.

That's it :)


Mac Terminal Zip Multiple Files 1