# 7z
# compress
7za a -t7z compressed.txt.7z origin.txt
#decompress
7za x compressed.txt.7z
# gzip (replace origin file)
# compress
gzip origin.txt
# decompress
gzip -d origin.txt.gz
# bzip2 (replace origin file)
# compress
bzip2 origin.txt
# decompress
bzip2 -d origin.txt.bz2
-1...9 fast to best, the block size 100K to 900K
-k keep the input file
Last active
November 4, 2015 06:35
-
-
Save Chunlin-Li/b2874c2cf078c1dbb4b5 to your computer and use it in GitHub Desktop.
Linux 压缩 compress 7z 7za gizp bzip bzip2 使用 example
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment