Linux learning - packing, compression command

Packing, compression command

tar packing / unpacking command, commonly Parameters: c packing, x unpacking, f designating operation for the file type
parameter cf not increase - number, e.g.
tar cf /tmp/etc-backup.tar / etc
tar command also when packaging compression
gzip compression or bzip2 command bzip2 higher compression ratio, but slow, gzip contrary, two examples
# CZF /tmp/etc-backup.tar.gz the tar / etc
# CJF the tar / tmp / Backup-ECT. tar.bz2 / etc
using gzip or bzip2 compression, expansion is double name

xf unpack command, e.g.
# tar xf /tmp/etc-backup.tar -C / root / a
suffix .tar.bz2 solution of .tar.gz compression command and jxf zxf
extension and .tar.gz. tar.bz2 sometimes abbreviated as .tbz2 and .tgz

Guess you like

Origin www.cnblogs.com/chenri/p/12590318.html