You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Missing File and Folders in Terminal

I just got a new Macbook pro (M1) and I am unable to see any files in the /usr/local folder in terminal. I need access to the files and folders in here to setup and configure a local server environment. I have given full disk access to Terminal. I also can't see these files and folders in Finder, so it isn't specific to Terminal. I have also tried doing a clean install with no change. I'm using the only account on the computer, so it has Admin privileges.

MacBook

Posted on Feb 25, 2021 10:42 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 25, 2021 11:31 AM

Apple includes Apache in macOS 11.*, so unless there are specific features that you must have from a newer version, adding it from brew might be unnecessary.


If you are running homebrew 3.0.0 or later (advised) on an M1 Mac, it wants to put things in /opt/homebrew, which would explain why you were surprised about the empty /usr/local — where it would have placed things on an Intel Mac.


I have brew 3.0.2 and it blithely creates arm64 binaries in /opt/homebrew.


My some lines in my ~/.zshrc:


export PATH=".:$HOME/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
export HOMEBREW_PREFIX="/opt/homebrew"
export HOMEBREW_CELLAR="/opt/homebrew/Cellar"
export HOMEBREW_NO_ANALYTICS=1


3 replies
Question marked as Top-ranking reply

Feb 25, 2021 11:31 AM in response to pjeffb

Apple includes Apache in macOS 11.*, so unless there are specific features that you must have from a newer version, adding it from brew might be unnecessary.


If you are running homebrew 3.0.0 or later (advised) on an M1 Mac, it wants to put things in /opt/homebrew, which would explain why you were surprised about the empty /usr/local — where it would have placed things on an Intel Mac.


I have brew 3.0.2 and it blithely creates arm64 binaries in /opt/homebrew.


My some lines in my ~/.zshrc:


export PATH=".:$HOME/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
export HOMEBREW_PREFIX="/opt/homebrew"
export HOMEBREW_CELLAR="/opt/homebrew/Cellar"
export HOMEBREW_NO_ANALYTICS=1


Feb 25, 2021 11:19 AM in response to VikingOSX

I have the /usr/local folder, but it is completely empty. I have installed Homebrew and used Homebrew to install a new version of Apache as was recommended. The next steps in the tutorial indicate that I should edit the http.conf file which is located at /usr/local/etc/httpd/httpd.conf. However, I can't get any deeper than /usr/local.

Missing File and Folders in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.