Library Folder Mac Hidden Sierra

How to view a Mac's /Library folder. There are three ways to easily view your hidden /Library/ folder. In macOS Sierra Apple added a Finder keyboard shortcut that makes it possible to quickly.

Feb 08, 2017  To navigate to your User Library please read these instructions: macOS Sierra: Go directly to a specific folder. For an easy way to navigate to that folder (or any other one for that matter, including Containers) just drag the icon at the top of its open Finder window to a Finder Sidebar. Apple made the user library folder hidden by default with the 10.7 release. If it's necessary to access these files to perform Adobe-related troubleshooting, use one of the following methods to make the user library content visible. Access hidden user library files Mac OS 10.7 Lion. Dec 30, 2016  While many Mac users may never need to access their User Library folder while running macOS Sierra — some advanced users, may need to get in there and access support data and such when troubleshooting. The folder is hidden by default in macOS Sierra, but it only take a few moments to access it, or make it so that the folder is always visible.

Of the many files and folders that make up macOS Sierra, there’s probably none so important to maintaining the “personality” of your Mac than the ~/Library folder. Inside this folder are many subfolders that contain preference lists (“plists”), database files storing a variety of important information, and many other files that maintain the state of macOS and of the individual apps that run on a Mac. Thanks to the importance of this folder, it’s normally hidden from view. Today we’ll show you a few ways to view the ~/Library folder.

Warning: Don’t play with the ~/Library folder if you don’t need to!
Before we go any further, it’s time for a warning. Don’t throw away or change anything in the ~/Library folder unless you know what you’re doing. Deleting individual files or folders found within ~/Library can cause individual applications or the operating system to malfunction.

When would you want to poke around in ~/Library? Perhaps you’re gaining knowledge about macOS as a developer and want to know how the operating system stores information. Maybe you want to clean out the remnants of an app that you haven’t had on your Mac for several years. In any case, it’s best to remember what your parents told you when you were a kid and were in a place filled with expensive and breakable things — “Look, but don’t touch!”

Library Folder Mac Hidden Sierra Vista

Method One: Our Friend, the Option Key
The first and easiest way is to use a trick that gives many of the items in the macOS menu bar “super powers” — hold down the Option key while clicking on a menu. In this case, Option-clicking the Go menu in the Finder adds a new menu item — Library — that opens the ~/Library folder (see image below):

As you can see from the image above, holding down the Option key while clicking on the Go menu in the Finder adds one item as seen on the right — the Library folder. Select that menu item and a window similar to the one seen below opens on the Mac screen:

Of these folders, Application Support is quite critical as it holds information for the current user’s apps. You’ll see many “.plist” files; these are XML (Extensible Markup Language) files that can be viewed on the Mac by simply highlighting the file and pressing the space bar to bring up a Quick Look. There are also a number of log files (text-based), temporary files, app plugins, and database files (.db or .sqlite) that are critical to storing settings and data in your favorite apps.

Method Two: Command-Shift-Period
The second method works from any open Finder window, and it uses the keyboard shortcut Command-Shift-. (that dot indicates the period key). This is a fun command, as it makes any hidden files or folders visible in the Finder. On the left in the image below you see my Home folder. Pressing Command-Shift-. makes hidden folders and files appear as shaded icons, shown on the right:

Pressing Command-Shift-Period makes hidden files and folders visible (right image)

See that Library folder in the center of the list on the right? Even though it is shaded, it can be double-clicked to open and view everything that’s in the folder. What’s more, some of the files that are not visible in the ~/Library folder when using Method One appear when using Method 2.

One other thing to note: Command-Shift-. makes these files and folders visible until the next time you use the command or reboot the Mac. If you’re poking around in the ~/Library folder on a Mac that other people may use without having their own logins, be sure to press Command-Shift-. one more time to set things back to hidden once you’re done. Note that Command-Shift-. also makes Library visible in the Finder Go menu without having to press the Option key…

Just remember, anything you change or delete in the ~/Library folder can affect how your Mac or individual applications work, so use these methods to just view hidden files or folders. Don’t delete the files or folders in ~/Library unless you know what you’re doing.

Updates

January 26th 2018: Added shortcut method available on macOS Sierra keyboard.

September 22nd 2016: Method of showing/hiding hidden files tested and working on macOS Sierra.

December 22nd 2015: Method of showing/hiding hidden files tested and working on Mac OS X El Capitan.

It seems like every day I search Google for the command to show hidden files on Mac OS X, not to mention Googling for the command to then hide those hidden files a few minutes later.

Today I decided to make a short and easy to remember alias to speed up the process. All I need do now is type showFiles and hideFiles whenever I need to show/hide OS X’s hidden files. Here’s how you can do it too.

Library folder mac hidden sierra mac

The Quickest Way to Show/Hide Hidden Files

Since the release of macOS Sierra, when in Finder, it is now possible to use the shortcut:

Press once to show hidden files and again to hide them. If you’re using a version earlier than macOS Sierra, see Show/Hide Hidden Files using Terminal Aliases to setup a toggle command via terminal.

Thanks to Guido Schlabitz for making me aware of this new shortcut.

Show/Hide Hidden Files the Long Way

The long way to show hidden Mac OS X files is as follows:

  1. Open Terminal found in Finder > Applications > Utilities
  2. In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES
  3. Press return
  4. Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.

Relaunch Finder by right clicking the Finder Icon whilst holding the ‘Option/alt’ key

This will show all hidden files. To hide them again, follow the same steps but replace the Terminal command with:

It’s not the longest set of instructions or the biggest command to commit to memory but if you’re doing this a lot, it’s worth spending a few minutes now to save yourself a lot more time in the future.

Library Folder Mac Hidden Sierra

Show/Hide Hidden Files using Terminal Aliases

A Terminal alias is a name or shortcut for one or multiple commands. Using an easy to remember alias, we can turn the above four step process into just one.

An alias can be made temporarily (just for the use of one terminal session) or permanently. As we want this to be a shortcut used now and in the future, let’s make it permanent:

  1. Open Terminal found in Finder > Applications > Utilities
  2. In Terminal, paste the following: sudo nano ~/.bash_profile
  3. Enter your Mac’s administration password if required, then hit return
  4. At the bottom of the open .bash_profile file, paste the following: alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
  5. Below that, paste the following: alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'

  6. Press ctrl + O and hit return to save the file
  7. Press ctrl + X to exit the file and return to the command line
  8. In Terminal, paste the following: source ~/.bash_profile to refresh your profile and make the aliases available

Now when you want to show hidden files, all you need type in Terminal is showFiles, then hideFiles when you want to hide them.

Library

If you want to modify the behaviour or alias names, let’s take a closer look at the commands you just added:

alias tells Terminal we’re adding a new alias.

showFiles is the name of the alias. Change this to what you wish.

We then give the alias two commands. The first being:

This is the command to show hidden files and is ended with a semi-colon ; so we can then use the second command:

Mac Os Hidden Library Folder

This will relaunch the Finder (to replicate the step of holding the ‘Option/alt’ key then right clicking the Finder icon in the dock).

Conclusion

With the aliases set up, all you need do in the future is type showFiles and hideFiles to show and hide Mac OS X’s hidden files respectively.

Hidden Library Folder Mac Sierra

Aliases can be used to speed up your interaction with the Terminal. Set up an alias for navigating to your most used directories, to commit to a GitHub repo and so on.