
The most common ones are as follows: The file is locked There are many possible reasons why you're getting the Zsh permission denied error on your Mac. Why you're getting the permission denied error in Terminal? However, this can also happen with any other file. Or when the file is dragged to the Terminal window, the "permission denied" error pops up. Most of the reports say that the error appears when they are trying to open the file installer via Terminal. According to several reports, the "Zsh: Permission denied" error can also happen even when the file is being opened in the root. It can occur with the sudo commands or even bash commands. Just like the error name indicates, it is a permission error that prevents Mac users from opening a file using commands.

Read more > What is Zsh: permission denied in macOS Terminal? It also lists how to create, edit, and delete bash profile on Mac. This post will tell you what is Bash and What is bash profile on Mac. Bash Profile Mac: What Is it and How it Differs from Bashrc?
