what is the chsh command with its examples

It stands for “change shell” and is used to change the login shell for any user. The default shell is the command interpreter that is used when a user logs into the system. It comes from “util-linux-ng-x.x.x” package.


1. To change your login shell

$ chsh -s /bin/bash

2. To print the list of shells

$ chsh -l

3. To print the usage message and exit

$ chsh -u

4. To print the version information

$ chsh -v

Related Commands: login, passwd, shells 

Leave a Reply

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