environment setup – change shell

Whenever you get a new *nix environment the shell you are offered to use may not be the one you like.

To change the default login shell is pretty simple:

first, check the available shells in the system:

more /etc/shells

Output:

/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/fdsh
/usr/local/bin/ksh

second, use chsh command

chsh -s /usr/local/bin/ksh

This should do it.

If your system has bash, which is my favorate, you will also need to create .bash_profile and .bashrc for the alias, promot etc… settings.

A sample .bashrc can be found here.

Â

This entry was posted in web site hosting. Bookmark the permalink.