tar: List content of gz/bz2 archives

This commit is contained in:
Jörg Thalheim 2013-09-14 15:48:57 +02:00
parent 4b7a1110f3
commit a9922d7c7b

View File

@ -10,8 +10,14 @@ tar -xzvf /path/to/foo.tgz
# To create a .gz archive: # To create a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/ tar -czvf /path/to/foo.tgz /path/to/foo/
# To list the content of an .gz archive:
tar -ztvf /path/to/foo.tgz
# To extract a .bz2 archive: # To extract a .bz2 archive:
tar -xjvf /path/to/foo.tgz tar -xjvf /path/to/foo.tgz
# To create a .bz2 archive: # To create a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/ tar -cjvf /path/to/foo.tgz /path/to/foo/
# To list the content of an .bz2 archive:
tar -jtvf /path/to/foo.tgz