Wednesday, April 22, 2009

How to change the shell

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:


To change the shell to csh, use the command:

chsh -s /bin/csh

To verify the current shell, use the command:

echo $SHELL

The 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:

Post a Comment