How to access usr folder on Mac?
What is the usr folder?
Apple operating systems are constructed using a Linux file system hierarchy, which means that traditional UNIX system directories hide certain files and directories. Unlike Applications or Documents or Downloads, some files and folders are hidden by default by the Mac operating system (macOS).
MacOS hides these for good reason. When buildings are constructed, wiring and plumbing is hidden behind walls. As a general rule, exposing anything that could have a serious negative impact on a building if it was accidentally damaged or tampered with is considered a good idea. The same is true of usr and var and other folders and directories.
Usr used to mean “everything user related”, but over time this has evolved into “user usable programs and data.” What this means is, the usr contains shareable, read-only data, and often contains the largest share of behind-the-scenes data on any operating system. Within the usr is user-land programs and data is contained, such as user binaries, their documentation, libraries, header files, and other read-only programs and associated data.
Generally speaking, because these folders and directories are behind the scenes, most users - even Mac power users - don't need to know about them or gain access. Similar to plumbing and wiring, it is enough to know they're running smoothly and only to gain access if you know what you’re doing, or let an Apple trained expert take a look using diagnostic software to see if there are any problems within the usr files and directories.
Another way to make sure everything is working smoothly under the hood is to download a Mac performance improvement app, such as CleanMyMac X. It can take a quick look at what is taking up too much space on your hard drive, with its Space Lens feature. Once CleanMyMac X has analysed your files and directories, including those that are hidden from view, you can delete what it recommends and regain the space you need for your Mac to run smoothly and quickly.
With the Space Lens tool, you can also access the usr folder and see how much space it takes on your Mac and what files it includes. First, you have download and install CleanMyMac X and then follow such steps:
- Launch the app.
- Go to the Space Lens tab.
- Click Scan.
- Find usr folder in the list.
- Double click to review the files.
However, if you prefer the manual way of looking behind-the-scenes, here is how you can access the usr folder on a Mac.
How to access the usr folder: The manual way
If you want to access the usr folder, there are a couple of ways you can do that.
1. Navigate to the usr through the Finder
- Open Finder.
- Press Command+Shift+G to open the dialogue box.
- Enter what you want to search for, e.g. /usr or /usr/discreet.
- Now you should have temporary access, and this means that you should be able to drag the folder into the Finder favourites bar for easier access in the future.
Another way to gain access is through Terminal.
2. Finding usr in Terminal
- Launch Terminal; which you can find in /Applications/Utilities
- Enter this command in Terminal:
chflags nohidden ~/usr
- (If nothing shows up under that name, try /Library as an alternative)
- Click Return. Make sure the command is executed.
- Quit Terminal. The usr folder should be visible in the Finder.
- If you ever want to restore this to how it was before enter the following command in Terminal:
chflags hidden ~/usr
- Click Return again and it should be back to how it was.
Only attempt this method if you are comfortable using Terminal. Remember, using Terminal can make significant changes to your macOS systems and files, so only make changes this way if you consider yourself a Mac power users. This method should temporarily uncover the usr folder.
Accessing the usr folder is often only necessary if you are looking for ways to improve the performance or speed of your Mac. Thankfully, there is an easier way. Downloading CleanMyMac X can solve a lot of problems, quickly and safely, without any risk of causing accidental damage. It comes with a useful Space Lens feature, since one reason a Mac doesn't perform as well as it once did is a result of files taking up too much space, or duplicate files, folders or apps. And identifying what is causing space issues is the job that CleanMyMac X does so well. See for yourself!