Monday, May 17, 2010

Gzip,Gunzip and Tar

A simple tip. If you need to quickly create a tar.gz archive of a folder named abc, then try the following command

tar -cvzpf desired_file_name.tar.gz /path/to/folder/abc

and if you need to get the folder back from the archive

tar -xvzpf filename.tar.gz

This is better and quick compared to the two step procedure of first using unzip and then tar.

No comments:

Post a Comment