Finding and accessing opt isn’t as simple as finding other hidden folders. In this article, we explain why and how to find and access the opt folder.

How to find the opt folder?

This isn’t as easy to find as a Library or even Net or var because macOS does not even have an opt (or /opt) folder. Instead, macOS has a /usr/local/opt folder — something you can make visible in the Finder.

Ordinarily, you aren’t going to need to find and access the /usr/local/opt folder unless you need to download new software applications from third-party providers, such as Intel or Homebrew.

Whatever the format you find opt within your macOS directory, the purpose of this folder is to serve as “a directory for installing unbundled packages (i.e., packages not part of the Operating System distribution, but provided by an independent source), each one in its own subdirectory.”

Navigating to this opt folder can be done one of two ways: either go through Terminal or search for it using the Finder.

How to find opt folder using Terminal

  1. Open Terminal from the Applications > Utilities folder.
  2. Type in the following command followed by Return: defaults write com.apple.Finder AppleShowAllFiles YES
  3. Now, Reinitialize the Finder, either by rebooting or right-clicking the Finder while holding down the Option key, then choosing “Relaunch.”
  4. This should show every hidden folder, including the /usr/local/opt folder.
  5. Once you are ready to hide them again, go to Terminal and input the following command: defaults write com.apple.Finder AppleShowAllFiles NO

How to access the opt folder using the Finder

  1. Open the Finder.
  2. Press Command+Shift+G to open the dialogue box.
  3. Input the following path and press Return: /usr/local/opt
  4. Now, you should have temporary access, so you should be able to drag it into the Finder favorites if you want to access it again.

How to visualize all your folders and access hidden files

While accessing the opt folder is safe, other hidden folders are hidden for a reason, especially if you want to access them to delete any files. But if you are still looking for a way to dig deep into your system folders that would be more convenient than browsing the library or using Terminal, there is one — Space Lens.

It is one of the powerful tools in CleanMyMac. With its help, you can scan your hard drive and build a detailed map of your storage. You’ll get a list of all the files and folders on your Mac — including the opt folder — and how much space they take. You can then remove space hoggers with a few clicks.

  1. Start your free CleanMyMac trial.
  2. Open the app and choose Space Lens.
  3. Click Scan.
    Scan completed in Space lens module in CleanMyMac
  4. Make your way through the files and folders and see if you want to delete anything. If yes, simply select the files and click Review and Remove.
  5. Once happy with the selection, click Remove.

CleanMyMac is a powerful cleaner, speed booster, and health guard for your Mac. Try it out to show your Mac some care.