chsh

Change the user's login shell. More information: <https://manned.org/chsh>.

Install

All systems
curl cmd.cat/chsh.sh
Debian Debian
apt-get install passwd
Ubuntu
apt-get install passwd
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install passwd
CentOS
yum install util-linux-ng
Fedora
dnf install util-linux-user
Windows (WSL2)
sudo apt-get update sudo apt-get install passwd
OS X
brew install util-linux
Raspbian
apt-get install passwd
Docker
docker run cmd.cat/chsh chsh powered by Commando

Change the user's login shell. More information: <https://manned.org/chsh>.

  • Change the current user's login shell interactively:
    chsh
  • Change the login shell of the current user:
    chsh -s path/to/shell
  • Change the login shell for a given user:
    chsh -s path/to/shell username
  • List available shells:
    chsh --list-shells

© tl;dr; authors and contributors