Library folder · macOS

On this page 7

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.

DomainPathWrite accessTypical contents
User Library~/LibraryThe account ownerPreferences, caches, app data for one user
Local Library/LibraryAdministratorsShared fonts, launch daemons, printer drivers
System Library/System/LibraryNobody (sealed volume)Core frameworks, kernel extensions, system fonts
Library domains in macOS

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.

SubfolderPurposeRisk of deleting
PreferencesProperty list (.plist) files with app settingsSettings reset to defaults
Application SupportDatabases, templates, libraries, saved stateHigh: can contain real user data
CachesRebuildable temporary dataLow: rebuilt on next launch
ContainersSandboxed data of App Store appsHigh: holds the app’s documents and settings
Group ContainersData shared by related appsHigh: shared databases and settings
LogsDiagnostic and crash logsLow: only history is lost
FontsFonts installed for one userDocuments may display incorrectly
Mobile DocumentsLocal copy of iCloud DriveHigh: deletions can sync to iCloud
Key subfolders of the user Library

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.

MethodHow to use itBest for
Go menu with OptionHold Option while opening the Go menu in FinderQuick one-time access
Go to FolderPress Shift-Command-G and type ~/LibraryJumping to a precise subfolder
View OptionsIn the home folder, enable Show Library FolderPermanent visibility
Hidden files shortcutPress Shift-Command-Period in FinderSeeing all hidden items temporarily
TerminalRun chflags nohidden ~/LibraryScripted or remote setup
Ways to reach the user Library

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.

SituationRecommended actionReason
App crashes at launchMove its .plist from Preferences to the DesktopTests whether settings are corrupt
App shows stale contentClear only that app’s folder in CachesCaches rebuild safely
Uninstalling an app fullyRemove its Application Support and Containers dataDeleting the bundle leaves data behind
Moving to a new MacUse Migration Assistant instead of copyingPreserves permissions and containers
Low disk spaceCheck Caches and Application Support sizesLarge caches and old data accumulate
Library actions by situation

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.