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

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: