chsh

Change 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 user's login shell. More information: <https://manned.org/chsh>.

  • Set a specific login shell for the current user interactively:
    chsh
  • Set a specific login [s]hell for the current user:
    chsh -s path/to/shell
  • Set a login [s]hell for a specific user:
    chsh -s path/to/shell username
  • [l]ist available shells:
    chsh -l

© tl;dr; authors and contributors