To change your default shell, you can use the chsh command or usermod command, depending on your system. Here are the steps for both methods:
Using chsh Command
Open your terminal.
Run the following command, replacing
/bin/bashwith your desired shell:chsh -s /bin/bashYou may need to log out and log back in for the changes to take effect.
Using usermod Command (for Linux)
Open your terminal.
Run the following command with superuser privileges, replacing
usernamewith your actual username and/bin/bashwith your desired shell:sudo usermod -s /bin/bash usernameVerify the change by checking your entry in
/etc/passwd:grep -w 'username' /etc/passwd
You should see the new shell at the end of your entry.
