How do I compress & uncompress files & directories?
The tar command can be used with gzip to compress many files into a single archive while retaining file permissions and ownership. Please note that these files can be decompressed with WinZIP. Type tar czvf backup2.tgz HTML in your home directory to compress the contents of your HTML directory into backup2.tgz Type tar xzvf backup2.tgz in your home directory to restore (replace) the contents of your HTML directory from backup2.