Which 'Library' is '~/Library/'?

Discussion in 'OS X Yosemite (10.10)' started by peanutismint, Feb 25, 2015.

  1. peanutismint macrumors 6502

    peanutismint

    Joined:
    Apr 4, 2007
    Location:
    Cardiff, UK
    #1
    When someone tells me to look in ~/Library/, does that mean the Library folder in the root of my 'Macintosh' drive, or the Library folder in my User area? Does it matter? How do these two Library sections differ? And is there an easy/obvious way to remember which one I should be accessing?
     
  2. maflynn, Feb 25, 2015
    Last edited: Feb 25, 2015

    maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    When someone says ~/Library that's short hand for /Users/<Your user>/Library.

    The other library folder is /Library.

    The primary difference between the two as I understand it, is that ~/Library is user based, holding information that pertains to your user account, i.e., your email settings, attachment and caching goes there. /Library is for more system wide settings and information.
     
  3. peanutismint thread starter macrumors 6502

    peanutismint

    Joined:
    Apr 4, 2007
    Location:
    Cardiff, UK
    #3
    Thanks so much, this makes much more sense now, and is easy to remember because I guess '~' is shorthand for 'whatever preamble usually comes before this symbol', in this case your specific user account name etc....

    So if I ever see '/Library' then it's safe to assume it's the one in the root of my HDD.
     
  4. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #4
    Use /<any directory> means the root folder and its direct subdirectories, like /System or /Library
     
  5. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #5
    ~ is Unix shorthand for your HOME folder. Usually /Users/<USERNAME>.

    http://en.m.wikipedia.org/wiki/Home_directory

    B
     

Share This Page