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>
view files in archive:
tar -tf <filename>.tgztest archive
standard:
gunzip -t <filename>.tgzfast:
pigz -t <filename>.tgz
zip#
test a zip archive:
unzip -t <filename>.zip
bz2#
unpack:
bzip2 -dk <filename>.bz2
gzip#
test
.gzfiles:gzip -v -t <file>.gz