Move from Zsh to Bash shell macOS


If you are looking for a way to move from the Zsh shell on macOS to Bash, all you do is type bash on the terminal prompt. Let's see it by an example,

code2care@mac ~ % bash

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ 

As you can see that I switched from % (Zsh) to $ (Bash) just by tying bash command.

✌️As Zsh is the default shell for macOS Big Sur, you will see the alert message when you switch to bash saying the default shell is zsh. To get back to Zsh, yes you got it right! Just type zsh

Move from Zsh to Bash Shell macOS Terminal Example
Move from Zsh to Bash Shell macOS Terminal Example



Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.