Skip to content

Instantly share code, notes, and snippets.

@Chunlin-Li
Last active November 4, 2015 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chunlin-Li/b2874c2cf078c1dbb4b5 to your computer and use it in GitHub Desktop.
Save Chunlin-Li/b2874c2cf078c1dbb4b5 to your computer and use it in GitHub Desktop.
Linux 压缩 compress 7z 7za gizp bzip bzip2 使用 example
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment