7-zip is a popular LZMA cross-platform compression algorithm. Install 7zip by:
apt install p7zip
brew install p7zip
7z a big.7z big.dat
7z e big.7z
- enable multithreading (far faster compression)
- enable LZMA2 compression (more advanced)
- like “fast” compression.
Example 7-zip for very large files (100s of gigabytes or terabyte-size files)
7z a -t7z -mx=3 -mmt=on -m0=lzma2 mycomp.7z *.txt
Higher compression settings might not add a lot of compression but can take vastly longer. LZIP advantages vs. 7-zip.