How do I display which shells are available to use?



  • To show the shells I can use in most unix platforms you can display the contents of /etc/shells, any shell shown you can use

    [unixbod@venus ~]$ cat /etc/shells
    /bin/sh
    /bin/bash
    /sbin/nologin
    /bin/tcsh
    /bin/csh
    /bin/ksh
    /bin/zsh
    

    To change you shell to any one the listed ones, you can use a command called "chsh", you maybe prompted for the password on some platforms

    Note that "chsh" changes your shell for every subsequent login, to change it just for one login session just type the full path of the shell you want to use and then type CTRL-D afterwards or just exit.


Log in to reply
 

© Lightnetics 2024