Contents
How do I change my default shell in Linux?
How to Change my default shell
- First, find out the available shells on your Linux box, run cat /etc/shells.
- Type chsh and press Enter key.
- You need to enter the new shell full path. For example, /bin/ksh.
- Log in and log out to verify that your shell changed corretly on Linux operating systems.
How do I set Bash as default shell?
Try linux command chsh . The detailed command is chsh -s /bin/bash . It will prompt you to enter your password. Your default login shell is /bin/bash now.