View Single Post
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#13
@sifo,

TAR only packs files together. GZIP (or BZIP2) actually compress files.

Usually you pack files together as a .tar file and then compress the .tar file to a .tar.gz (or .tgz) file.

See here for a reference: http://unixhelp.ed.ac.uk/CGI/man-cgi?tar
(or just google "man tar").

As an example, if you have a directory called "packme" and you want to pack it you'd do:

Code:
$ tar -cf package.tar packme
Now the same with tar+gzip:

Code:
$ tar -czf package.tar.gz packme
 

The Following 3 Users Say Thank You to reinob For This Useful Post: