Forrest logo
back to the chsh tool

chsh:tldr:74ed3

chsh: Set a specific login shell for the current user interactively.
$ chsh
try on your machine

The chsh command is short for "change shell" and is typically used in Linux and Unix-like operating systems. It allows you to change the default login shell for a user.

When you execute the chsh command, it prompts you to enter the new shell you want to use. You need to provide the absolute path to the shell executable. Common shells include bash, zsh, csh, tcsh, etc.

Changing the shell can be useful if you want to switch to a different shell with different functionalities, scripting capabilities, or a more comfortable command-line environment.

However, please note that changing the shell for important system users (like root) may have unintended consequences, so it's generally recommended to consult the documentation or seek guidance before modifying these settings.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the chsh tool