13 November 2007

How do I change the shell I use?

The chsh command can be used to change your shell.

There are other options that may be used as well. To check the available shells on your system, use the following command:
 
chsh --list
which will produce a list similar to:
/bin/sh
/bin/bash
/sbin/nologin
/bin/ash
/bin/bsh
/bin/ksh
/usr/bin/ksh
/usr/bin/pdksh
/bin/tcsh
/bin/csh

To change the shell to csh, use the command:
chsh -s /bin/csh

To verify the current shell, use the command:
echo $SHELL

Note:Above example is for the root user. Non-root users are prompted for their password before the shell is changed. These changes will take effect on the next login.

No comments: