Tar: Linux Archiving and Compression

Submitted by str on Mon, 09/04/2006 - 09:32

Creating a TAR archive:

tar -cf archive.tar DirectoryNeedToArchive/

Listing the contents of TAR archive:

tar -tf archive.tar

Extracting files from TAR archive:

tar -xf archive.tar

Compressing the TAR archive:

gzip archive.tar

Decompressing and extracting tar/gzipped archive:

tar -xzvf archive.tar.gz