Example of changing the login shell with the chsh command

Example of changing the login shell with the chsh command

To change your login shell to the Korn shell (ksh):

   chsh
   Changing login shell for sarah.
   Old shell name: /bin/csh
   New shell: ksh

This changes the user's login shell from the C shell (csh) to the Korn shell (ksh).

If you mistype the name of the shell or specify a shell that is not available on your system:

  • you will be given a list of all the shells that are available on your system.

or

  • a message similar to the following will be displayed.
   name is unacceptable as a new shell

[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.