How can I make bash my login shell?

Printer-friendly version

Every time, I do SSH to my Linux box, the default shell comes as: csh, but I want to, use the bash shell automatically from PuTTY. For making bash as the default login shell, first we need to find out, the path of the bash shell, by using:

which bash

If your login shell is csh or tcsh, and you have installed bash in /bin/bash then create a ~/.login file and add the following line:

if ( -f /bin/bash ) exec /bin/bash --login

The `--login' tells bash that it is a login shell.

More Information:

No votes yet