Change my default shell in Linux using chsh

www.l‮c.iruttua‬om
Change my default shell in Linux using chsh

To change your default shell in Linux using the chsh command, follow these steps:

  1. Open a terminal window.

  2. 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
  1. Log out and log back in for the changes to take effect.

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.

Created Time:2017-10-16 14:38:41  Author:lautturi