How Do I Change Shell Type in Linux?
Contents How Do I Change 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...
Contents
How do I change 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 change my default shell?
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.