LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to change from one shell to another? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-from-one-shell-to-another-747703/)

cll975dll 08-15-2009 01:30 AM

How to change from one shell to another?
 
Hi everyone.
How to chenge the default shell(i.e. bash shell) to another shell(i.e. tcsh, csh, ksh).
Any help will be appreciated.
Thanking You in advance.

foodown 08-15-2009 01:32 AM

As root . . .

Code:

usermod -s /bin/tcsh login
usermod -s /bin/csh login

Replacing 'login' for the username.

ThinkFree 08-15-2009 01:51 AM

Use command
Code:

chsh
It will first ask you to enter the password for logged in account and then the path of new shell.

Or as root, you can use
Code:

chsh username
And then enter path of new shell.

malli42108 08-15-2009 01:51 AM

Quote:

Originally Posted by cll975dll (Post 3644078)
Hi everyone.
How to chenge the default shell(i.e. bash shell) to another shell(i.e. tcsh, csh, ksh).
Any help will be appreciated.
Thanking You in advance.

i think simply give shell name in command prompt
# ksh


All times are GMT -5. The time now is 10:16 PM.