$ zip out.zip target-file $ zip -r out.zip target-dir
$ zip -e target -P
$ unzip target.zip
$ tar -cvjf out.tar.bz2 target
$ tar -xvjf target.tar.bz2
$ tar -cvJf out.tar.xz target
$ tar -xvJf target.tar.xz
$ tar -cvf out.tar.bz2 --use-compress-program pbzip2 in-file
CPU | Core i7-3520M (4-Core) | |||
---|---|---|---|---|
target | linux-2.6.32.65 (439MB) | |||
tar + pbzip2 | elapsed time | 17.510 [sec] | size | 68824777 |
tar + bzip2 | elapsed time | 38.542 [sec] | size | 68701378 |
$ tar -cvf out.tar.gz --use-compress-program pigz in-file
または
$ tar -cvf out.tar.gz -Ipigz in-file
$ find <target-dir> | cpio -o | pbzip2 > <target-dir>.cpio.bz2
$ find <target-dir> | cpio -o > <output-file>.cpio $ xz <output-file>.cpio
$ xz -dc <target-file>.cpio.xz | cpio -i
$ xz -d <target-file>.cpio.xz # この操作で <target-file>.cpio が出来る $ cpio -i < <target-file>.cpio
$ cpio -it < <target-file>.cpio