zsh not found

whenever I type any command in terminal it says zsh: command not found

MacBook Air, macOS 13.5

Posted on Aug 22, 2023 11:12 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 23, 2023 3:01 AM

What commands are you trying to run?


What do you see if you type in the command "echo $PATH"? The PATH specifies all of the directories where a shell will search for a command if you do not provide the full path name of the command. If your PATH is messed up (say because of an error in a shell initialization script), you might get "command not found" for even basic commands.


Under Ventura and zsh, I see:


% echo $PATH
/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin


I take it that "/System/Cryptexes/App/usr/bin" is related to some of the security changes made to recent versions of macOS. Under High Sierra, there was no such directory in the PATH.

1 reply
Question marked as Top-ranking reply

Aug 23, 2023 3:01 AM in response to Yashro

What commands are you trying to run?


What do you see if you type in the command "echo $PATH"? The PATH specifies all of the directories where a shell will search for a command if you do not provide the full path name of the command. If your PATH is messed up (say because of an error in a shell initialization script), you might get "command not found" for even basic commands.


Under Ventura and zsh, I see:


% echo $PATH
/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin


I take it that "/System/Cryptexes/App/usr/bin" is related to some of the security changes made to recent versions of macOS. Under High Sierra, there was no such directory in the PATH.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

zsh not found

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