How Do I Make Bash My Default Shell in Linux?
Contents Try Linux Command Chsh. the Detailed Command Is Chsh -S /Bin/Bash. It Will Prompt You to Enter Your Password. Your Default Login Shell Is /Bin/Bash...
Contents
Try linux command chsh . The detailed command is chsh -s /bin/bash . It will prompt you to enter your password. Your default login shell is /bin/bash now.
How do I set bash as my default shell?
From System Preferences
Hold the Ctrl key, click your user account’s name in the left pane, and select “Advanced Options.” Click the “Login Shell” dropdown box and select “/bin/bash” to use Bash as your default shell or “/bin/zsh” to use Zsh as your default shell. Click “OK” to save your changes.
Must Read
How do I change the default shell in Linux?
Now let’s discuss three different ways to change Linux user shell.
- usermod Utility. usermod is a utility for modifying a user’s account details, stored in the /etc/passwd file and the -s or –shell option is used to change the user’s login shell. …
- chsh Utility. …
- Change User Shell in /etc/passwd File.