Create and extract comptessed tar archieves

Because i google this so often:

 

To add a complete directory to a tar file and compress the tar use this:
tar cfvz NAME.tar.gz [DIRECTORY]

To extract the files use:
tar xfvz NAME.tar.gz

 

If you have many files in the directory it might be a good idea to leave the v parameter out.

Advertisements

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: