How to extract tarball on Linux ?

.tar.xz

 tar xf filename.tar.xz 

.tgz

 tar -zxvf filename.tgz 

.tar.gz

 tar -zxvf filename.tar.gz 

.tar.bz2

 tar -jxvf filename.tar.bz2 

.tar

 tar xf archive.tar 

.tgz

 gzip -dc filename.tgz | tar xf - 

.tar.gz

 gzip -dc filename.tar.gz | tar xf - 

Leave a Reply

Your email address will not be published. Required fields are marked *