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.

Terminal: Permission denied when navigating to any folder

I try to navigate to a folder in terminal:

Input: username@Filips-MBP ~ % /Users/username/Desktop/project8/part1

Output: zsh: permission denied: /Users/username/Desktop/project8/part1


I've tried other folders as well but same thing happens. I wonder if it has to do with when I got this MacBook and used migration assistant. The old account followed and was set as admin but I then set the new account as admin and deleted the old one.


Any ideas?

MacBook Pro 13", macOS 10.15

Posted on Apr 27, 2020 1:09 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 27, 2020 5:42 AM

Both the Bash and Zsh shells require that you use the built-in cd command prior to the path you want to navigate too. There is no direct path addressing as in your example wrongly displays. Instead:


cd /Users/username/Desktop/project8/part1

or more appropriately:


cd ~/Desktop/project8/part1


4 replies

Terminal: Permission denied when navigating to any folder

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