The Library folder in macOS is a system directory that holds the supporting data apps and the operating system need: preferences, caches, application support files, fonts, logs, containers and plug-ins. It is not a place for documents, and Finder hides the user copy by default because careless edits can break apps or erase settings.
In everyday work with Finder & files, the term usually refers to the hidden folder in the home directory, written as ~/Library. A Mac actually has three Library folders at different levels, and knowing which one a file belongs to is the key to troubleshooting, migrating settings and removing leftovers after an app is deleted.
Three Library folders and their scope
macOS separates supporting data into three Library domains, and the domain decides who the data affects and who may change it. The user domain belongs to one account, the local domain applies to every account on the Mac, and the system domain belongs to Apple and is read-only.
The table below lists the three locations, who can write to them and what they typically contain.
| Domain | Path | Write access | Typical contents |
|---|---|---|---|
| User Library | ~/Library | The account owner | Preferences, caches, app data for one user |
| Local Library | /Library | Administrators | Shared fonts, launch daemons, printer drivers |
| System Library | /System/Library | Nobody (sealed volume) | Core frameworks, kernel extensions, system fonts |
Since macOS Catalina, the system files live on a read-only system volume, and since macOS Big Sur that volume is cryptographically sealed. As a result, /System/Library cannot be modified even by an administrator, while the user and local folders remain writable. When the same item exists at several levels, apps generally search the user domain first, then the local domain, then the system domain, so a user setting overrides a shared default.
What the user Library folder contains
The user Library folder is organized into standard subfolders with fixed roles, and well-behaved apps place each kind of data in the subfolder Apple defines for it. Recognizing these subfolders makes it clear which data is safe to remove and which data represents real user work.
The following table summarizes the most important subfolders and how risky it is to delete their contents.
| Subfolder | Purpose | Risk of deleting |
|---|---|---|
| Preferences | Property list (.plist) files with app settings | Settings reset to defaults |
| Application Support | Databases, templates, libraries, saved state | High: can contain real user data |
| Caches | Rebuildable temporary data | Low: rebuilt on next launch |
| Containers | Sandboxed data of App Store apps | High: holds the app’s documents and settings |
| Group Containers | Data shared by related apps | High: shared databases and settings |
| Logs | Diagnostic and crash logs | Low: only history is lost |
| Fonts | Fonts installed for one user | Documents may display incorrectly |
| Mobile Documents | Local copy of iCloud Drive | High: deletions can sync to iCloud |
Sandboxed apps from the App Store do not write directly into ~/Library/Preferences or Application Support. Each one receives its own container under `~/Library/Containers`, which mirrors a small Library structure and isolates the app’s data from other apps. This is why the settings of a sandboxed app are often missing from the places older guides recommend.
Opening the hidden Library folder in Finder
Apple has hidden the user Library folder since OS X Lion to prevent accidental changes, but several built-in methods reveal it without third-party tools. The right method depends on whether access is needed once or permanently.
| Method | How to use it | Best for |
|---|---|---|
| Go menu with Option | Hold Option while opening the Go menu in Finder | Quick one-time access |
| Go to Folder | Press Shift-Command-G and type ~/Library | Jumping to a precise subfolder |
| View Options | In the home folder, enable Show Library Folder | Permanent visibility |
| Hidden files shortcut | Press Shift-Command-Period in Finder | Seeing all hidden items temporarily |
| Terminal | Run chflags nohidden ~/Library | Scripted or remote setup |
The Show Library Folder checkbox is the cleanest permanent option because it changes only this folder rather than revealing every hidden file. Neighboring concepts such as hidden files and .DS_Store work differently: they are hidden by a leading dot in the name, while the Library folder is hidden by a file system flag.
Library folder in troubleshooting and migration
The Library folder is the first place support staff look when an app misbehaves, because corrupted preferences or caches cause many crashes and odd behaviors. A disciplined approach changes one item at a time and keeps a copy until the fix is confirmed.
The decision table below matches common situations with a sensible action.
| Situation | Recommended action | Reason |
|---|---|---|
| App crashes at launch | Move its .plist from Preferences to the Desktop | Tests whether settings are corrupt |
| App shows stale content | Clear only that app’s folder in Caches | Caches rebuild safely |
| Uninstalling an app fully | Remove its Application Support and Containers data | Deleting the bundle leaves data behind |
| Moving to a new Mac | Use Migration Assistant instead of copying | Preserves permissions and containers |
| Low disk space | Check Caches and Application Support sizes | Large caches and old data accumulate |
Preference changes may not take effect immediately, because macOS keeps settings in memory through the cfprefsd process. Editing a .plist while the app is running can be silently overwritten, so the app should be quit before preference files are moved or edited, and the defaults command is the safer tool for changing a single value.
Common mistakes with the Library folder
Most problems come from treating the Library folder as ordinary disposable storage. These mistakes are frequent in practice:
- Deleting entire Caches folders system-wide, which forces mass rebuilding and rarely frees space for long.
- Removing Application Support data without a backup, which can erase mail archives, game saves or project libraries.
- Deleting files inside Mobile Documents, which removes the items from iCloud Drive on every device.
- Storing personal documents in the Library folder, where Spotlight and Time Machine rules may treat them differently and users rarely look.
- Trusting aggressive cleaning utilities that remove data apps still need.
Time Machine backs up the user Library by default except for most caches, so a recent backup is the simplest safety net before any manual cleanup.
Explained without jargon
Think of a Mac app as a worker who keeps a private drawer of notes. The drawer remembers your chosen settings, recent files and saved logins. The Library folder is the cabinet that holds all those drawers.
Apple hides this cabinet because your own documents are not there, and moving the wrong item can make an app forget everything. Most people never need to open it. When an app misbehaves, a technician may open it to reset one app’s notes, which often fixes the problem without reinstalling anything.
A typical use case
A graphic designer finds that a photo editing app crashes every time it starts on her MacBook Pro running macOS Sonoma. Reinstalling the app does not help, because the reinstall leaves her settings untouched in the Library folder.
Her IT technician quits the app, opens Finder, presses Shift-Command-G and goes to ~/Library/Preferences. He moves the app’s .plist file to the Desktop rather than deleting it, then relaunches the app. It starts normally with default settings, which proves the preference file was corrupt.
Because her brushes and presets live in a separate folder under Application Support, nothing of value is lost. She reapplies a few interface settings in about ten minutes, and the technician deletes the old file a week later once the app has stayed stable.