terminal command not found

terminal opens in zsh , if I try to run command ls , clear , etc. it shows command not found.

Posted on Oct 13, 2023 9:30 AM

Reply
2 replies

Oct 13, 2023 10:19 AM in response to Apple_User-India

Zsh shell does not read your old Bash dotfiles and you need to minimally configure a Zsh dot file (e.g. ~/.zshrc) to show a PATH statement. That ~/.zshrc file is not created for you, you must create that plain text dot file yourself with these contents:


export PATH=".:${PATH}"


Save the ~/.zshrc file and in your Terminal, run this command:


source ~/.zshrc


to make the PATH available to the current Terminal session.


The PATH will contain /usr/bin and /bin so that you can access the ls(1) and clear(1) commands. There is no clean command.



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.

terminal command not found

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