Retired Document
Important: This document is replaced by File System Programming Guide.
Introduction to the File System Overview
The file system is an important part of any operating system. After all, it’s where users keep their stuff. In Mac OS X, the organization of the file system plays an important role in helping the user find files. The organization also makes it easier for applications and the system itself to find the resources they need to support the user.
The file system in Mac OS X has at its core a set of directories inherited from the Berkeley Software Distribution (BSD) operating system. While most of these directories are actually hidden by the Finder, many elements of the BSD world are still apparent. The file permissions model, symbolic links, and user home directories are all concepts inherited from BSD. Mac OS X also adds many of its own concepts to provide the user with a secure and elegant environment for managing files and folders.
The Mac OS X file system was designed to provide power and flexibility while maintaining the traditional ease-of-use users expect. To this end, the file system provides users with a consistent structure that makes it clear where resources are located. (This consistency also helps developers, whose applications need to know where important resources are located.) Other file system conventions, such as aliases, extension hiding, and display names also enhance the user experience.
Organization of This Document
The Mac OS X File System contains the following articles:
File-System Domains describes the high-level organization of the file system in Mac OS X.
The Library Directory describes the standard subdirectories that are used to configure the system and user environments.
The Developer Directory describes the developer-specific directories that are installed with the Xcode Tools.
Where to Put Application Files provides guidelines on where applications should place non-essential configuration and support files.
Files and the Finder describes the role of the Finder in managing the file system. It also explains some of the techniques the Finder uses to associate files with applications.
Sorting Rules explains the rules for ordering file and directory names in Finder windows.
File System Guidelines offers tips and advice on how best to support Mac OS X file system features.
Filename Extensions describes the Mac OS X support for filename extensions and how to support them in your applications.
Display Names explains the difference between file names in the file system and the file names that users see. It also explains when your application should use display names.
BSD Permissions and Ownership describes the principles behind file permissions and their implications for file management in Mac OS X.
Access Control Lists provides an overview of access control lists and how they are used to supplement BSD permissions.
File System Comparisons offers a comparison of features between HFS+ and UFS volume formats.
Aliases and Symbolic Links describes the differences between aliases and symbolic links.
Copyright © 2003, 2011 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2011-05-25