How to Change Shell in Linux?
Contents

To change your shell with chsh:

  • cat /etc/shells. At the shell prompt, list the available shells on your system with cat /etc/shells.
  • chsh. Enter chsh (for “change shell”).
  • /bin/zsh. Type in the path and name of your new shell.
  • su – yourid. Type in su – and your userid to relog in to verify that everything works correctly.

How do I change the default shell in Linux?

Once you have the location of the new shell, you can change the default for any user as long as you have the root or super user credentials. You can use either the usermod or the chsh command to do it. You can also do it manually by editing the passwd file. usermod is the command used to modify user accounts.

How do I change bash to Shell?

Change the default shell from bash to tcsh as used by Terminal app in three steps:

  1. Launch Terminal.app.
  2. From the Terminal menu, select preferences.
  3. In preferences, select “execute this command” and type /bin/tcsh in place of /bin/bash.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest