Common Compression Instructions on Linux and Unix
- *.Z compress program compressed files;
- *.zip Files compressed by the zip program;
- *.gz files compressed by gzip program;
- *.bz2 The file compressed by the bzip2 program;
- *.xz xz program compressed file;
- *.tar The data packaged by the tar program has not been compressed;
- *.tar.gz tar program packaged files, which are compressed by gzip
- *.tar.bz2 tar program packaged files, which are compressed by bzip2
- *.tar.xz tar program packaged files, which are compressed by xz
1. gzip, zcat/zmore/zless/zgrep
Currently gzip can unzip files compressed by compress, zip and gzip.
By default, the original file will be compressed into a .gz file name, and the original file will no longer exist.
-v, --verbose This option turns on verbose mode, which prints the
compression ratio for each file compressed.
-d, --decompress, --uncompress This option selects decompression rather than
compression.
-c, --stdout, --to-stdout This option specifies that output will go to the
standard output stream, leaving files intact.
-1, --fast
-2, -3, -4, -5, -6, -7, -8
-9, --best These options change the compression level used, with
the -1 option being the fastest, with less compression,
and the -9 option being the slowest, with optimal
compression. The default compression level is 6.
More details man gzip.
2. bzip2,bunzip2,bzcat,bzip2recover
More details man bzip2.
3. xz,unxz,xzcat,lzma,unlzma,lzcat
xz [option...] [file...]
Comments
Post a Comment