To change your default shell in Linux using the chsh
command, follow these steps:
Open a terminal window.
Use the chsh
command to change the default shell. To do this, use the following command, replacing new_shell
with the path to the desired shell:
chsh -s /path/to/new_shell
For example, to change the default shell to bash, you would use the following command:
chsh -s /bin/bash
After you have logged in again, your default shell will be set to the new value.
Note that the chsh
command can only be used to change the default shell for the current user. If you want to change the default shell for a different user, you will need to use the chsh
command as that user or use the usermod
command with root privileges.