How to Change Default shell to bash

Default shell for computational accounts is csh (C shell).

In order to change shell to bash, please perform the following steps:

To change the Shell temorarily -

After login to cluster, use "/bin/bash"
 

To change it permanently-

Step-1: Open ".cshrc" file by command "vi ~/.cshrc"
Step-2: Add following lines in the .cshrc file-  

if ($?prompt) then
if ( -x /bin/bash ) exec /bin/bash
endif
                   

Step-3: save the .cshrc file
Step-4: logout and login back to your account and the shell sould be Bash

Leave a reply

-