chsh

The chsh command can be used to change a user's login shell.

On Kali Linux version 2024.4, as shown from the lsb_release -a command, the default login shell is /usr/bin/zsh. This can be verified as follows:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2024.4
Codename:       kali-rolling

$ echo $SHELL
/usr/bin/zsh

Example

To use the chsh command to change the login shell to bash (/usr/bin/bash).

$ which bash
/usr/bin/bash

$ chsh -s /usr/bin/bash

Restart the system, or simply close and reopen the terminal for the changes to be applied.

Last updated