4 thoughts on “chsh Command

  1. sindhu@sindhu-eeepc:~$ chsh –list-shells
    chsh: unrecognized option ‘–list-shells’
    Usage: chsh [options] [LOGIN]

    Options:
    -h, –help display this help message and exit
    -s, –shell SHELL new login shell for the user account

    sindhu@sindhu-eeepc:~$

  2. $ chsh --list-shells
    /bin/sh
    /bin/bash
    /sbin/nologin
    /bin/zsh
    
    $ chsh --help
    Usage: chsh [ -s shell ] [ --list-shells ] [ --help ] [ --version ]
           [ username ]
    

    I am on Fedora 8 – which distro are you using?

  3. That explains it. I just checked the command in Xbuntu – it has a different chsh command too. I am not sure why fedora is different. Sorry about the confusion.

Leave a Reply

Your email address will not be published. Required fields are marked *