$ 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)
(ευχαριστώ πολύ για τα σχόλια)
Πέμπτη 22 Μαΐου 2008
Εγγραφή σε:
Σχόλια ανάρτησης (Atom)
2 σχόλια:
... 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 :)
i think that the z flag is not really necessary.
i just use tar xvf regardless of the compression algorithm
Δημοσίευση σχολίου