Hello!
Pack a directory to an
tar archive:
Code:
tar -cvf archive.tar directory
Pack now the the
archive.tar to
gz:
You can merge this two steps and create a
tar.gz archive of a directory with:
Code:
tar -cvf archive.tar directory && gzip archive.tar
Or a much faster and simply way:
Code:
tar cvfz archive.tar.gz directory
To pack a directory to a
bz2 archive:
Code:
tar -cvjf archive.tar.bz2 directory
Good luck!
Boby