To change the default shell in Linux or Unix from Bash to KSH (Korn Shell), you can use the chsh
command. The chsh
command is a utility that is used to change the login shell for a user.
Here's an example of how to use the chsh
command to change the default shell from Bash to KSH:
chsh -s /bin/kshSourec:www.lautturi.com
This will change the default shell for the current user to KSH.
To change the default shell for a different user, you can use the -u
option and specify the username. For example:
chsh -s /bin/ksh -u user1
This will change the default shell for the user1
user to KSH.
Note that you will need to log out and log back in for the change to take effect.