Tar gzip gzcat GNU & not GNU ways

Se avete sistemi Unix che non hanno lo GNU tar (versioni vecchie di tar su Solaris/HP-UX/ecc…) questi sono i comandi per comprimere e decomprimere al volo:

Comprimere: tar cvf - {file list} | gzip -c > compressed-file.tar.gz

Estrarre/Decomprimere: gzcat compressed-file.tar.gz | tar xf -

Listare/Visualizzare: gzcat compressed-file.tar.gz | tar tf -

Se invece avete il nuovo tar (tutte le distribuzioni Linux piu’ recenti) :

Comprimere: tar czvf compressed-file.tar.gz {file list}

Estrarre/Decomprimere: tar xzvf compressed-file.tar.gz

Listare/Visualizzare: tar tzvf compressed-file.tar.gz

Post simili:

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

2 Responses to “Tar gzip gzcat GNU & not GNU ways”
  1. Website
    06:04 on July 23rd, 2011

    Just desire to say your article is as astonishing. The clarity to your post is just excellent and that i could suppose you are a professional in this subject. Fine together with your permission allow me to seize your RSS feed to stay up to date with approaching post. Thank you 1,000,000 and please carry on the enjoyable work.

  2. cheap FiveFingers
    09:35 on April 14th, 2011

    it look like simple and useful thing. that’s interesting.

Leave a comment