The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  
The chsh (change your login shell) command in Linux is used to change a user's login shell. The login shell is the command interpreter that is executed when a user logs into a system. It defines the environment in which the user interacts with the system, including the command prompt and various shell-related settings.

The chsh command allows authorized users to change their default login shell to a different one available on the system. Here's the basic syntax of the command:
chsh [OPTIONS] [USERNAME] .

For example, to change the login shell for the user "john" to /bin/ksh, you would run:

chsh -s /bin/ksh john

Additionally, changing the login shell requires administrative privileges. Typically, only system administrators or the user themselves can change their own login shell.

For more examples of usingchsh, refer to the provided link.