NEW VPS Plans

ServerTune provides -- managed and un-managed -- VPS hosting solutions at affordable prices to accommodate your personal and/or businesses needs.

Click here for more info ...

NEW VPS Plans

Click to hideClick to view
ServerTune

Browse by category

Search    |    Advanced search

HowTo :: Shell

Changing Your Shell
Running chsh will place you into the editor that is in your EDITOR environment variable; if it is not set, you will be placed in vi

You can also give chsh the -s option; this will set your shell for you, without requiring you to enter an editor. For example, if you wanted to change your shell to bash, the following should do the trick:

chsh -s /usr/local/bin/bash

Note:
The shell that you wish to use must be present in the /etc/shells file. If you have installed a shell from the ports collection, then this should have been done for you already. If you installed the shell by hand, you must do this.

For example, if you installed bash by hand and placed it into /usr/local/bin, you would want to:

echo "/usr/local/bin/bash" >> /etc/shells
Printer Friendly
 
email to a friend
Email to friend
 
Add comment
Add comment
 
Views: 842
 
Votes: 0
 
Comments: 0
 
Posted: 28 Nov, 2007 by: Customer Service S.
Updated: 06 Mar, 2011 by: Customer Service S.

Other articles in this Category

Article
Article
Article
RSS