zsh permission Denied

Viewed 3836

I m a beginner with terminal I don't know why every time I try to open a directory from the terminal this pops up. Even I gave full disk access to the terminal then also this pops up. permission denied

2 Answers

If you want to be able enter dirs without typing cd, you need to add this to your .zshrc file:

setopt autocd

Also, if you want to refer to the value of a parameters like $PWD and $HOME, you need to prefix it with a $, like I just did. The $ tells the shell to substitute the value of the parameter, instead of treating whatever you typed as plain text (unless substituted by a global alias).

Running BigSur on Mac... Make sure you're in the right directory (where your file is located) say your file is on Documents type:

cd Documents

Related