Linux Comm Chsh
# Linux chsh Command
[ Linux Command Manual](#)
The Linux `chsh` command is used to change a user's shell setting.
**Permissions:** All users.
### Syntax
shell>> chsh
### Examples
shell>> chsh Changing shell for user1 Password: New shell [/bin/tcsh]: ### shell>> chsh -l ### Display the contents of the /etc/shells file/bin/bash /bin/sh /bin/ash /bin/bsh /bin/tcsh /bin/csh
Change the current shell. The current shell is set to //bin/bash, and through the chsh command, change the shell setting to /bin/csh.
# chshChanging shell for root.New shell [/bin/bash]: /bin/csh //Enter the new shell addressShell changed.
Change the current shell setting using the -s parameter.
# chsh -s /bin/csh //Change the current setting to /bin/cshChanging shell for root.Shell not changed.
[ Linux Command Manual](#)
YouTip