Archiving

For when you have lots of things and you want one thing, ideally as small as possible.

The Gzip Basics

Gzip is data compression software used to compress a file into an archive, as well as expand an already-compressed archive back into a file. One common use for gzip is to compress a tarball. [One could use Zip both to collapse and compress a directory, instead of tar / gzip, but the compression isn’t as […]

Breaking out of the ZIP-CPGZ loop

I receive a lot of compressed archives, from a wide variety of different users. Those who prefer the command-line (usually other developers) will TAR the directory then GZIP the TAR. Most users are more comfortable with a GUI for archiving and wind up sending a ZIP file. With those it’s usually a quick double-click and […]

The Tar basics

Tar is a compression utility used to generate a single archive, known as a “tarball”, out of multiple files and subdirectories. It can also be used, inversely, to extract these same subdirectories and files out of the archive. I want to create a tarball: tar cvf [archive-name].tar [source-directory] Here’s what the options mean: c = […]