Πέμπτη, 22 Μαΐου 2008

tar

$ tar zxf file.tar.gz
$ tar zxf file.tgz
$ tar jxf file.tar.bz2
$ tar jxf file.tbz2

------------------------------------
... or just:
tar xzf file.(tar.gz|tgz|tar.bz2|tbz|tar.Z|tar.z)

(ευχαριστώ πολύ για τα σχόλια)

2 σχόλια:

Giorgos Keramidas είπε...

... or just:

tar xzf file.(tar.gz|tgz|tar.bz2|tbz|tar.Z|tar.z)

the BSDtar implementation by Tim Kientzle doesn't really care if the extension is "tbz" but the contents are gzip-compressed. It peeks into the archive to see what 'z" means and it DTRT :)

comzeradd είπε...

i think that the z flag is not really necessary.

i just use tar xvf regardless of the compression algorithm