Compressing and Splitting Files with 7-Zip on Mac

1. Install Homebrew
/bin/bash -c "$(curl -fsSL"
2. Install 7-Zip
brew install p7zip
3. Compress a Directory
7z a -r directory_name.7z directory_name/
4. Fully Compress a Directory with Maximum Level
7z a -t7z -m0=LZMA2 -mx=9 -ms=on large_folder.7z large_folder/
5. Split a 7-Zip Archive into 5 GB Slices
7z a -t7z -mx=9 -v5g large_file.7z large_file/
6. Extract a Split 7-Zip Archive
7z x large_file.7z.001
7. Extract All Volumes of a Split Archive
7z x large_file.7z.*
By following these steps, you can compress files and directories using 7-Zip on your Mac, as well as split and extract split 7-Zip archives.

Published @ Jan 2023