How Do I Permanently Change the Default Shell in Linux?
Contents

How do I change my default shell?

To change a user account’s default shell on macOS, simply run the chsh -s (change shell) command in a Terminal window. You’ll have to enter your user account’s password. Finally, close the Terminal window and reopen it. You’ll be using Bash instead of Zsh.

How do I change the default shell to Bash in Linux?

Changing the Default Shell of the Current User

If we want to change the default shell of the current login user, we can execute the chsh command with the -s <NEW_SHELL> option. Let’s change the default shell of the current user to Bash: kent$ chsh -s /bin/bash Changing shell for kent. Password: Shell changed.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest