File Compression
tgz
- compress
- standard:
tar cvfz <target_file>.tgz <source_files_or_dir>
- fast:
tar -I pigz -cvf <target_file>.tgz <source_files_or_dir>
- fast with best compression:
tar -I "pigz --best" -cvf <target_file>.tgz <source_files_or_dir>
- standard:
- view files in archive:
tar -tf <filename>.tgz
- test archive
- standard:
gunzip -t <filename>.tgz
- fast:
pigz -t <filename>.tgz
- standard:
zip
- test a zip archive:
unzip -t <filename>.zip
bz2
- unpack:
bzip2 -dk <filename>.bz2
gzip
- test
.gz
files:gzip -v -t <file>.gz
Last modified February 1, 2023: Update file-compression.md (bc1be1b)