Mac Create Zip File Command Line



Gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code. GitHub CLI is available for repositories hosted on GitHub.com and GitHub Enterprise Server 2.20+, and to install on macOS, Windows, and Linux. On a Mac or Linux system, you can create an encrypted zip file using the command line. Use the 'zip' command with the '-e' argument, followed by the name of the zip file you want to create and the files you want to include in it.

7-Zip is a file archiver with a high compression ratio.

Download 7-Zip 19.00 (2019-02-21) for Windows:

LinkTypeWindowsSize
Download.exe32-bit x861.2 MB
Download.exe64-bit x641.4 MB

Download 7-Zip 21.01 alpha (2021-03-09) for Windows:

LinkTypeWindowsSize
Download.exe32-bit x861.2 MB
Download.exe64-bit x641.4 MB
Download.exe64-bit ARM641.5 MB

License

File

7-Zip is free software with open source. The most of the code is under the GNU LGPL license. Some parts of the code are under the BSD 3-clause License. Also there is unRAR license restriction for some parts of the code. Read 7-Zip License information.

You can use 7-Zip on any computer, including a computer in a commercial organization. You don't need to register or pay for 7-Zip.

Mac Create Zip File Command LineCreate

The main features of 7-Zip

Mac Create Zip File Command Lines

Mac Create Zip File Command Line
  • High compression ratio in 7z format with LZMA and LZMA2 compression
  • Supported formats:
    • Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
    • Unpacking only: AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
  • For ZIP and GZIP formats, 7-Zip provides a compression ratio that is 2-10 % better than the ratio provided by PKZip and WinZip
  • Strong AES-256 encryption in 7z and ZIP formats
  • Self-extracting capability for 7z format
  • Integration with Windows Shell
  • Powerful File Manager
  • Powerful command line version
  • Plugin for FAR Manager
  • Localizations for 87 languages

7-Zip works in Windows 10 / 8 / 7 / Vista / XP / 2019 / 2016 / 2012 / 2008 / 2003 / 2000.

p7zip - the port of the command line version of 7-Zip to Linux/Posix.

On 7-Zip's SourceForge Page you can find a forum, bug reports, and feature request systems.

Compression ratio

We compared 7-Zip with WinRAR 5.20.

Mac Command Line Create Zip File

FILE SETS: Mozilla Firefox 34.0.5 for Windows and Google Earth 6.2.2.6613 for Windows.

Mac Create Zip File Command Line Linux

ArchiverMozilla FirefoxGoogle Earth
65 files
85 280 391 bytes
483 files
110 700 519 bytes
Compressed sizeRatioCompressed sizeRatio
7-Zip 9.35
-mx
39 357 375100%15 964 369100%
WinRAR 5.20
-m5 -s -ma5 -md128m
41 789 543106%17 035 432107%

Compression ratio results are very dependent upon the data used for the tests. Usually, 7-Zip compresses to 7z format 30-70% better than to zip format. And 7-Zip compresses to zip format 2-10% better than most of other zip compatible programs.