Phine Solutions web work notes

environment setup - change shell

Filed under: web site hosting — 1.618 @ 9:33 am

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.

Â

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

©phinesolutions.com