Change a user shell

usermod

  • Modifies a user account.
    See also: `users`, `useradd`, `userdel`.
    More information: <https://manned.org/usermod>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo usermod --shell {{path/to/shell}} {{username}}

click the source code to copy install usermod on any operating system with command-not-found.com