YouTip LogoYouTip

Linux Comm Chsh

# Linux chsh Command [![Image 3: Linux Command Manual](#) 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. [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm UserconfLinux Comm Uname β†’