jobs
Hlavní stránka > počítače > Linux – vylistování obsahu archivu .TAR, .GZ nebo .BZ2

Linux – vylistování obsahu archivu .TAR, .GZ nebo .BZ2

22.04.2010 (14,925 zobrazení) Komentuj Přejdi na komentáře

Někdy je potřeba vylistovat obsah archivu, ale nikdy si nemohu vzpomenou na parametry a musím je googlit a proto si je uložím tady :D.

Vylistování .TAR


tar -tvf soubor.tar

Vylistovaní .GZ (.TGZ)


tar -ztvf soubor.tar.gz

Vylistování .BZ2


tar -jtvf soubor.tar.bz2

Pokud potřebujeme zjistit počet souborů v archivu, stačí za vylistování přidat počítání řádků, např.:

tar -ztvf soubor.tar.gz | wc -l

No a třeba budete chtít .TGZ rozbalit


tar -xvz soubor.tar.gz -C /cesta/do/pekel
Categories: počítače Tags: , , ,
  1. May 29th, 2020 at 13:22 | #1

    Thank you for these good moments on your blog. I am often in the post to watch (again and again) these wonderful articles that you shared. Really very interesting. All the best !

  1. No trackbacks yet.

IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 15 + 9 ?
Please leave these two fields as-is:

mail
tour