Dealing with Archives of Many Colors: .img, .sit, .tar, .gz
Back in the innocent days of OS 9, one compression format reigned supreme: Stuffit from Aladdin Systems. With OS X and its BSD Unix foundation, there’s a whole slew of compression technologies available, all built into your default installation.
Stuffit Expander, DropStuff, and their Aladdin ilk have long been stalwarts of the Mac OS, included on Apple CDs and preinstalled machines. The same can be said for Unix utilities like gzip, bzip2, and compress, also included with OS X and available through the Terminal. Throw in Apple’s disk-image technology, which creates archives that look and act like removable disks, and you’ve got a veritable cornucopia of compression and archival technologies.
.dmg and .img
Apple has been providing disk image technology in the shape of its Disk Copy utility for years now. Creating a disk image is a mindless task — simply open Disk Copy, drag a folder over the floating window (see Figure 1-11), decide if you want encryption, and choose where to save the resultant file (see Figure 1-12).

Figure 1-11. Dragging a folder into Disk Copy

Figure 1-12. Setting Image Folder options
Creating image files, however, doesn’t offer much
compression, and you’ll see a lot of
dmg.gz extensions on your new downloads. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access