We strongly encourage you to keep your code in a (private) hosted Git repository. Nonetheless, it is also useful to know how to create and move around “tarball” files. A tarball is a set of files packaged together into a single file, then compressed using the gzip compression program. “Tar” is short for “tape archive,” which tells you something about how long this particular mode of packaging files has been around! Most Unix software on the net is distributed as tarballs, and tarballs are also useful for moving around large binary files from place to place.

To create a tarball of all the files in the directory mystuff, type

tar czf mystuff.tgz mystuff


and to unpack the files, type

tar xzf mystuff.tgz


The mess of letters after the tar command tells the program what it is supposed to do; they have the following meanings:

• f filename: Specify the archive file name
• c: Create an archive file
• x: Extract an archive file
• z: Put an archive through gzip