chsh
Change user's login shell. tldr-pages
On Linux, FreeBSD, NetBSD, OpenBSD
Linux
Change user's login shell. Part of util-linux.
Set a specific login shell for the current user interactively
chshIdentifyList available shells
chsh --list-shellsIdentifySet a specific login shell for the current user
chsh --shell path/to/shellIdentifySet a login shell for a specific user
sudo chsh --shell path/to/shell usernameIdentifyFreeBSD
This command is an alias of chpass.
NetBSD
This command is an alias of chpass.
OpenBSD
This command is an alias of chpass.