Syed Jahanzaib – Personal Blog to Share Knowledge !

January 20, 2010

*niX: Howto Open/Create .tar / .tar.bz2 / tar.gz

Filed under: Linux Related — Syed Jahanzaib / Pinochio~:) @ 11:12 AM

To extract files from .tar file use the following syntax
tar xf filename.tar

To compress all file in one .tar file, use the following syntax
tar cvf filename .tar *

To view contents of .tar file:
tar tvf backup.tar 

To Open / Extract For tar.bz2,

tar jxvf filename.tar.bz2
For tar.gz,

tar zxvf filename.tar.gz

%d bloggers like this: