LownoteNB

Q: Make User Library Visible in Mountain Lion

I would like to make my User Library folder permanently visible since it has much useful information that I consult.  Many sources have recommended you insert     chflags nohidden ~/Library/     into a Terminal window to make this change.  I was able to do this successfull in Lion.

 

However, in Mountain Lion, Terminal responds with Permission Denied when I do this.  Does anyone know what I need to do to make the command work?

 

Thanks.

iMac (27-inch Late 2009), OS X Mountain Lion

Posted on Aug 4, 2012 8:25 AM

Close

Q: Make User Library Visible in Mountain Lion

  • All replies
  • Helpful answers

Page 1 Next
  • by Jiri Krecek,Solvedanswer

    Jiri Krecek Jiri Krecek Aug 4, 2012 8:27 AM in response to LownoteNB
    Level 4 (1,075 points)
    Aug 4, 2012 8:27 AM in response to LownoteNB

    put "sudo" in front of the command above

    it will prompt you for  admin password

  • by Tuttle,

    Tuttle Tuttle Aug 4, 2012 8:29 AM in response to LownoteNB
    Level 7 (29,520 points)
    FrontRow
    Aug 4, 2012 8:29 AM in response to LownoteNB

    Easiest way to do this is to option-click the Go menu in Finder and choose Library. When it opens, drag the Library folder into Finder's sidebar and it will always be available.

  • by soehn,

    soehn soehn Aug 4, 2012 8:28 AM in response to LownoteNB
    Level 2 (195 points)
    Aug 4, 2012 8:28 AM in response to LownoteNB

    Try to add a sudo before the command:

    sudo chflags nohidden ~/Library

  • by Jiri Krecek,

    Jiri Krecek Jiri Krecek Aug 4, 2012 8:31 AM in response to LownoteNB
    Level 4 (1,075 points)
    Aug 4, 2012 8:31 AM in response to LownoteNB

    sudo is SUPER USER DO and executes any command behind it at a root level.

    Watch out with using it for other commands.

    You can do a lot of harm when using it and bring your Mac to a state of FUBAR

     

    For this reason, Apple has hidden the Library folder.

  • by LownoteNB,

    LownoteNB LownoteNB Aug 5, 2012 4:52 AM in response to Jiri Krecek
    Level 1 (1 points)
    Aug 5, 2012 4:52 AM in response to Jiri Krecek

    Thanks.  Worked like a champ!

  • by ag2231,

    ag2231 ag2231 Aug 13, 2012 8:18 AM in response to LownoteNB
    Level 1 (5 points)
    Aug 13, 2012 8:18 AM in response to LownoteNB

    I am logged in as 'Root' so at the prompt sh-3.2# I should only have to type:

     

    sh-3.2#  chflags nohidden ~/Library/

     

    When I do this I am not given any errors and I am taken bake to the prompt with one exception, the "Library" remains invisible. Any ideas why the library is not becoming visible?

  • by markwmsn,

    markwmsn markwmsn Aug 13, 2012 3:02 PM in response to ag2231
    Level 5 (5,694 points)
    Photos for Mac
    Aug 13, 2012 3:02 PM in response to ag2231

    If you are logged in as "root", then you are changing root's ~/Library, not your own. Is that what you intended?

  • by Jiri Krecek,

    Jiri Krecek Jiri Krecek Aug 13, 2012 5:44 PM in response to ag2231
    Level 4 (1,075 points)
    Aug 13, 2012 5:44 PM in response to ag2231

    As markwmsn pointed out, this may be your case. If you are logged as root, then you are changing root's library flag and not your own. Unless root is the only user you are using on this Mac, I don't see a reason why you should log into the machine as root.

     

    Would this work?

     

    chflags nohidden /Users/username/Library/

     

    where "username" would be the user you are trying to show the library for.

     

    Otherwise, I'm out of ideas. :-(

  • by Jiri Krecek,

    Jiri Krecek Jiri Krecek Aug 13, 2012 5:58 PM in response to Jiri Krecek
    Level 4 (1,075 points)
    Aug 13, 2012 5:58 PM in response to Jiri Krecek

    Spoke too soon.

    One more idea crept in

     

    If/when you get the shell script working save it in Automator as an application and fire it as a Startup Item upon login. I just tested mine and it works flawlessly. Again, this will only work, if the shell scipt works in terminal.

     

    I am logged in as a non-root user with admin privileges and pon running the script, library immediately appears or disappears, without prompting me for root password or using sudo.

     

    If you are logged in as admin into OS X and the scipt still doesn't yield results, then I'm afraid something may be wrong with your OS X instance.

  • by ag2231,

    ag2231 ag2231 Aug 13, 2012 6:13 PM in response to markwmsn
    Level 1 (5 points)
    Aug 13, 2012 6:13 PM in response to markwmsn

    Duh, completely slipped my mind, thanks for the reminder both Markwmsn and Jiri Krecek. Obviously just performing this command as "SUDO" works fine. Sometimes when you always use root for the heavy lefting you forget to just keep it simple like with sudo.

  • by Jiri Krecek,

    Jiri Krecek Jiri Krecek Aug 13, 2012 6:20 PM in response to ag2231
    Level 4 (1,075 points)
    Aug 13, 2012 6:20 PM in response to ag2231

    If you want to have this fast, consider creating those apps in Automator to run this shell script.

    I tested them both to hide and unhide the Lib and it really works like a charm

  • by DouglasRibeirao,

    DouglasRibeirao DouglasRibeirao Feb 25, 2013 8:01 AM in response to soehn
    Level 1 (0 points)
    Feb 25, 2013 8:01 AM in response to soehn

    Perfect!!      tk`s friend 

  • by skillet,

    skillet skillet Apr 14, 2013 12:14 PM in response to DouglasRibeirao
    Level 1 (14 points)
    Desktops
    Apr 14, 2013 12:14 PM in response to DouglasRibeirao

    One thing I had to do to get this to work was to create another administrator user and then go to the disc permissions and repair them there.  It wasn't working for some reason from my admin I was logged into typing in my password.  After doing that and logging back in and runing sudo chflags nohidden ~/Library and typing my password solved the problem and the library folder showed up.

  • by DouglasRibeirao,

    DouglasRibeirao DouglasRibeirao Apr 18, 2013 10:00 AM in response to skillet
    Level 1 (0 points)
    Apr 18, 2013 10:00 AM in response to skillet

    Work`s  tks

Page 1 Next