Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-07, 04:57
Administrator
 
Join Date: Jul 2007
Posts: 85
Talking How to change shell in Unix?

This is how you can Change your shell:-

On computers running Linux, at the Unix prompt, enter: chsh -s newshell

Replace that newshell with the full pathname of the shell you want to use. Enter your password when prompted, and the system will change your shell. To see a list of the available shells, at the Unix prompt, enter:
chsh -l

On computers running Solaris (e.g., Steel at IU), at the Unix prompt, enter: chsh newshell

Replace newshell with the full pathname of the shell you want to use. To see a list of the available shells, at the Unix prompt, enter:
chsh
On HP-UX machines, at the Unix prompt, enter: chsh username newshell

Replace username with your username, and newshell with the full pathname of the shell you wish to use.

For example, if dvader wanted to change to bash, he would enter:
chsh dvader /usr/local/bin/bash
On AIX, to list the available shells, at the Unix prompt, enter: chsh

The system will then ask you if you really want to change your shell. If you press y and then Enter, you will be prompted to enter the full path of the new preferred shell. For example, to change to bash, enter:
/usr/local/bin/bash
On computers running Tru64 Unix, at the Unix prompt, enter: chsh

You'll then see something similar to the following:
Old shell: /bin/csh New shell:

The old shell listed is the one currently running. To leave your shell unchanged, press Enter. To change shells, enter the full pathname of the shell you wish to use. For example, to change to bash from csh, at the "New shell:" prompt, enter:
/usr/local/bin/bash
Reply With Quote
  #2 (permalink)  
Old 07-16-07, 07:15
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default

Well, i have also seen that you will require to use the following -

$ ypchsh [user]

Perhaps in NIS
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.