How Do I Change the Default Shell in Unix?
Contents How Do I Change My Default Shell? How to Change My Default Shell First, Find out the Available Shells on Your Linux Box, Run Cat /Etc/Shells. Type...
Contents
How do I change my default shell?
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 the shell in Unix?
To change your shell use the chsh command:
The chsh command changes the login shell of your username. When altering a login shell, the chsh command displays the current login shell and then prompts for the new one.