misc_unix_archiving

**Archiving with Tar:**
Tar files place several files or the contents of a directory or directories in one file. This is a good way to create backups and archives. Usually, tar files end with the .tar extension.

To create a tar file, type:
tar -cvf filename.tar files/directories

To extract the contents of a tar file, type:
tar -xvf foo.tar

To compress a file, at a shell prompt, type:
gzip filename.ext

To expand a compressed file, type:
gunzip filename.ext.gz