Error : 'bash: chsh: command not found' , in mac cmd

When I tried to switch my shell from bash to zshell using this command : 'chsh -s /bin/zsh'

, getting this error :

'bash: chsh: command not found'


I used the chsh command to switch from zsh to bash, and that worked .Im not able to switch back

MacBook Pro Apple Silicon

Posted on Jan 24, 2023 10:33 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 25, 2023 7:56 AM

Try using the full path for the "chsh" command:

/usr/bin/chsh  -s  /bin/zsh


If this works, then it means your Bash PATH is not correct.


Similar questions

1 reply

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.

Error : 'bash: chsh: command not found' , in mac cmd

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