Library Folder Mac Hidden
Dec 12, 2016 The User Library folder is hidden by default in MacOS Catalina, MacOS Mojave, macOS High Sierra, and macOS Sierra, but some advanced users may wish to show and access the /Library/ folder, which contains preference files, caches, and application support data. This command will restart the Finder and then you will see hidden files and folders on your Mac. If you want to hide the files again, you simply repeat the operation but change the last word in the first command to “ false”. So, you should perform these two commands to make the hidden files.
Learn how to access the hidden Library folder in your Home folder on your Mac so you can tweak app settings and access app files.
Inside the home folder on your Mac is a Library folder that stores app-specific files and settings, personal settings, and some data. The files and settings in the Library folder should be left alone for the most part. But, you may want to tweak the settings for an app, which may require accessing the Library folder. Or, maybe an app backs up data to the Library folder and you want to copy that to an external drive.
As of Mac OS X Lion (10.7), the Library folder in your home folder is hidden by default. That doesn’t mean you can’t get to it. It’s hidden so you don’t accidentally delete settings and data, damaging apps in the process. So, if you decide you want to access the Library folder, be very careful.
Today we’re going to cover different ways of accessing the hidden Library folder in your home folder and how to make it permanently available in Finder.
What is the Path to the Library Folder?
The Library in your home folder is written as ~/Library. The tilde (~) character is a shortcut for your home directory. For example, on my Mac, that would expand to /Users/lorikaufman/Library.
Access the Library Folder Using the Go to Folder Option
If you want to access the Library folder only occasionally, you can use the Go to Folder option in Finder.
Open Finder or just click on the desktop. Head to Go > Go to Folder, or hit Cmd + Shift + G.
Type:~/Library in the Go to the folder box on the dialog box and click Go or press Enter.
If you have one or more Finder windows open, the Library folder opens in the currently active window. If no Finder windows are open, a new one opens to the Library folder.
Access the Library Folder Using the Terminal
If you prefer using the command line, you can access the Library folder using the Terminal.
Go to Utilities > Terminal in the Applications folder. To access the Library folder directly in the Terminal, type:cd ~/Library at the prompt to switch to the Library folder.
You can type:ls at the prompt to get a detailed folder listing. You can work with the files in the Library folder directly on the command line. Just be careful.
You can also use the Terminal to open the Library folder in a Finder window. Type:open ~/Library at the prompt and hit Enter.
Access the Hidden Library Menu Option in Finder
The Library folder is available on the Go menu in Finder, but it doesn’t show on the menu by default.
To temporarily show the Library option on the Go menu, open the menu and press the Option key. The Library folder shows up between Home and Computer on the Go menu. Keep the Option key pressed while you move your mouse down the menu and select Library.
If you’re using a Windows keyboard with your Mac, press the Alt key.
Show the Library Folder Permanently in Finder
If you access the Library folder often, you can permanently show the Library option on the Go menu and the Library folder in your Home folder.
Open Finder and head to your Home folder using the left pane or by pressing Cmd + Shift + H. Then, go to View > Show View Options, or hit Cmd + J.
A dialog box displays with options you can set for your Home folder. Check the Show Library Folder box at the bottom of the dialog box. The Library folder now shows up in your Home folder in Finder windows and the Library option becomes permanently available on the Go menu.
When you permanently show the Library folder in Finder, you can hit Cmd + Shift + L to open it in a Finder window, in addition to selecting the Library option on the Go menu.
Happy Tweaking, But Be Careful
The Library folder is hidden by default for a good reason. So, before tweaking settings and changing files in the Library folder, make sure 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.
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:
My current method requires a third-party service to get the job done. We are also paying for storage. Wrap-upWhatever Apple does to address this problem, it’s got to be easy. Photo library disappeared mac os. When my wife upload’s to Dropbox, it strips away Live Photo data, but it’s better than the alternative of having to check her phone periodically and AirDropping them back to myself.
- Open Terminal found in Finder > Applications > Utilities
- In Terminal, paste the following:
defaults write com.apple.finder AppleShowAllFiles YES
- Press return
- 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
Library Folder Mac Hidden 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.
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:
- Open Terminal found in Finder > Applications > Utilities
- In Terminal, paste the following:
sudo nano ~/.bash_profile
- Enter your Mac’s administration password if required, then hit return
- 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'
Below that, paste the following:
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
- Press ctrl + O and hit return to save the file
- Press ctrl + X to exit the file and return to the command line
- 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.
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.
Library Folder Mac Hidden Files
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:
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.
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.