Email or username:

Password:

Forgot your password?
Top-level
Bartek Ogryczak

@april does it auto-detect compression type? Does it mean that `-j` and `-J` are also unnecessary when extracting? (also, tar is a Terrible ARchive format, it should die already).

2 comments
Gabriel Pettier

@bartek @april yes, it's unnecessary, and even when creating an archive, you can use the `a` flag to autodetect format.

$ tar acf directory{.tar.gz,}
$ tar acf directory{.tar.bz2,}
$ tar acf directory{.tar.xz,}

$ file directory.*
directory.tar.bz2: bzip2 compressed data, block size = 900k
directory.tar.gz: gzip compressed data, from Unix, original size modulo 2^32 28272640
directory.tar.xz: XZ compressed data, checksum CRC64

Bartek Ogryczak

@tshirtman @april Nice.

Still, given that zip is an open format, and unlike tar has proper structure, with index, checksums, etc, I'd rather see it used more often.

It's already being used by so much of open-source as the basis of package format, yet so many still stick to tar.

Go Up