To change your shell in Linux or Unix, you can use the chsh
(change shell) command. The chsh
command allows you to change the default shell for your user account.
Here’s an example of how to change your shell to bash
:
chsh -s /bin/bash
The -s
option specifies the shell to use, and /bin/bash
is the path to the bash
executable.
After running the chsh
command, you’ll need to log out and log back in for the changes to take effect.
You can verify that your shell has been changed to bash
by running the echo $SHELL
command. The output should be /bin/bash
.