Linux – vylistování obsahu archivu .TAR, .GZ nebo .BZ2
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

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 !