Possible side effects of changing shell from zsh to bash

Answer from the Stack Overflow (switching from zsh to bash):

You can just use exec to replace your current shell with a new shell:

Switch to bash:

exec bash

Switch to zsh:

exec zsh

This won't affect new terminal windows or anything, but it's convenient.


Changing your shell, via sudo chsh --shell=/bin/bash $USER will change the shell field in /etc/passwd. This value is only consulted at login time, when the system has no idea of which shell to use for you.

Running processes, whether started by zsh, bash apache or evil_overlord's_program won't be affected


Open your terminal and use the following command:

chsh -s $(which bash)