How to change default shell in Linux

Want to change the default shell in Linux/Unix/MacOS? Try:

chsh -s /path/to/shell user

For example, set the shell to /usr/local/bin/zsh for user tom, enter:
which zsh
chsh -s /usr/local/bin/zsh tom

For more information see Howto: Changing Linux Login Shell

In Category: Link

Vivek Gite

Vivek Gite, nixCraft creator, and professional Unix sysadmin/DevOps is obsessed with optimizing the servers and making sure data center stays online 24x7.

No comments yet. Be the first.