Chapter 3. Files and Filesystems

Apple’s Mac OS Extended filesystem, HFS+, has a lot going for it. Although its case-insensitivity caused trouble back in the very early days of Mac OS X, it is rarely a problem these days. Its transparent support of the metadata that is so crucial to Mac OS X, coupled with its excellent support for journaling, make it the filesystem of choice for the operating system today. But even if your hard disks, iPods, and external drives are all happily formatted with HFS+, chances are you’ll have to exchange files with something other than a Mac one of these days.

Note

Trouble? What kind of trouble? Here’s an example: Library for WWW in Perl (LWP), a suite of Perl modules for interacting with web servers, also includes a number of command-line utilities. One of these is named HEAD. Once upon a time, installing LWP on Mac OS X with the default options led to the command-line utilities being dropped in /usr/bin. This resulted in /usr/bin/head being overwritten with HEAD. I was surprised by how many things rely on that useful little utility. Although such mishaps are still possible today, they are less likely. LWP no longer installs HEAD by default, but you should always pay careful attention to what you’re installing, especially with older software.

Though it is not recommended for most users—even Unix geeks—you can format a filesystem as case-sensitive and journaled HFS+. You can even install Mac OS X on a case-sensitive journaled HFS+ partition, but you may ...

Get Mac OS X For Unix Geeks, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.