Name
chsh
Synopsis
chsh [options] [username]
Description
Change your login shell, interactively or on the command line. Warn if shell does not exist in /etc/shells. Specify the full path to the shell. chsh prompts for your password. Only a privileged user can change another user’s shell.
Options
- -l, --list-shells
Print valid shells, as listed in /etc/shells, and then exit.
- -s shell, --shell shell
Specify new login shell.
- -u, --help
Print help message and then exit.
- -v, --version
Print version information and then exit.
Example
chsh -s /bin/tcsh
Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.