Com The following will zip — -c [archive file] -m [amount of compression] -d [destination file] The following will The above will add a folder named in the current working directory to your archive.zip file.zip file. To create a compressed archive (.zip), follow the instructions above for compressing it. The -d flag specifies the destination file name (the destination file) to extract from the archive The zip command above will write the contents of the archive file to standard out. The format of this output: ±---±------------± Archive.com — Volume 1.8 — Source — Size 1.5 GB 0×085d44c0 1.8 GB As a result, the zip archive is compressed by + 0×085d44c0, meaning that the size of the file is + 1.8 GB . Unpack Zip-File You may enter the following command to unzip a compressed archive, and the compressed files into their original locations: unzip -c [filename] [destination file] tar Man Page — macOS — SSSM.com You would enter: tar ADVF [archive file] [destination file] tar -AJF [destination file] [archive file] tar -AVF [archive file] [destination file] tar -AZF [archive file] [destination file] Now you might notice that the directory to the root directory does not have spaces between the letters on the command line. This is required, so that we do not confuse the directory which the archive was stored on with the directory it created on disk. Now enter the above terminal command: CD [destination folder] Note: Do not use the brackets. If you have more than one directory on your terminal, only enter the first one: CD [root folder] When you are in the directory with the archive file, use the ls command as follows: ls archive.zip To unpack from archive, enter the following command: unzip archive.zip In the above command, archive.zip is the archived file with the extension .zip.