12

There are two 'Library' directories in my OS X 10.11 installation, one being /Library/, the other being /System/Library/.

What is the difference between different Library folders?

0

3 Answers 3

8

As in all the Unix system, there are two type of lib folder.

One specific for the user and the other for the entire system and so all the users of the machine.

In particular for OS X: the Macintosh HD version is the actual computer Library, while, the home folder version is specific to your user account.


Here an example to help you understand how to use it:

/System/Library is a place to store fonts, screen savers, Dashboard widgets, and all other things that all local users need access to.

~/Library is for your own user account only (cache and preference files, widgets for your use only, etc).


EDIT: taken from here, a complete overview of all the possible library folders in a Mac OS X system:

  • The user library, ~/Library, stores per-user settings etc.

  • The local library, /Library, stores computer-wide settings and all-users content etc. I call this the "local" library, because in NextStep it was /Local/Library, but you'll see all sorts of other names for it, such as the root library, computer library, ...

  • The network library, /Network/Library would store settings shared by all computers in a network domain -- if a network domain admin set one up, which nobody does anymore...

  • The system library, /System/Library, stores the base settings, resources, etc that come with OS X. In theory, you shouldn't change anything in here.

3
  • 3
    Thanks, but what I meant was that there is one Library directory in the root directory (/Library/), and another Library directory in the System directory, which itself is in the root directory (/System/Library/). I'm aware that there is a third Library directory in the user's directory, /Users/_username_/Library/, but this is not what I meant. Nov 27, 2016 at 10:22
  • @AlexIxeras in that case take a look at this complete answer: stackoverflow.com/questions/14286571/…
    – rebatoma
    Nov 27, 2016 at 10:30
  • @Mattia, Nope, the link doesn't answer it. You've completely missed the question. /System/Library is probably a misnomer; it should've been called /Library/System
    – Pacerier
    May 29, 2018 at 13:58
10

/System/Library is for stuff that doesn't change and is installed by Apple. Files here help the operating system run.

/Library is for things that may change and that pertain to all users on a computer.

And for completeness (although not mentioned in the question):

~/Library is where things that may change specific to a particular user go.

1
  • 2
    this is a better answer
    – mishap
    Jan 15, 2021 at 5:01
2

macOS has 3 types of Libraries.

Here are the following:

/Library/ - Used to control system wide settings that are used by all users

Usually no reason for regular user to alter, although applications will alter this during and post installation

/System/Library/ - Same as /Library/ but protected by SIP. Used by macOS as the core Library. Most things in there are required by macOS.

Shouldn't (and can't without SIP being disabled) be altered.

~/Library/ - Same as /Library/ but for user specific things (Each user has one.


You can access each of these by going to Finder>Go>Go To Folder and typing in their respective path.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .