commands.sh

chsh

linux

Change user's login shell. Part of `util-linux`.

More info →

Options (2)

-l, --list-shellsboolean

List available shells

Example: chsh {{[-l|--list-shells]}}
-s, --shellboolean

Set a specific login shell for the current user

Example: chsh {{[-s|--shell]}} {{path/to/shell}}

Examples (4)

Set a specific login shell for the current user interactively

List available shells

chsh [-l|--list-shells]

Set a specific login shell for the current user

chsh [-s|--shell] path/to/shell

Set a login shell for a specific user

sudo chsh [-s|--shell] path/to/shell username
made by @shridhargupta | data from tldr-pages