📜  gchange default from dash to bash - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:41:22.263000             🧑  作者: Mango

gchange default from dash to bash - Shell-Bash

If you are a Linux user, you might have noticed that the default shell in most distributions is linked to a dash shell rather than a bash shell. This is because the dash shell is much lighter and faster to load than the bash shell, which is a bit bulkier. However, many users prefer the bash shell because it offers more functionality and is easier to use.

If you are one of those users, you can change the default shell to bash by using the chsh command. Here is how you can do it:

  1. Open a terminal window and type chsh -s /bin/bash and press Enter.
chsh -s /bin/bash
  1. You will be prompted to enter your password. Do so and press Enter.
Password:
  1. After entering your password, the shell will be changed to bash.
Changing the login shell for user {username}
Enter the new value, or press ENTER for the default

        Login Shell [/bin/bash]:
  1. Press Enter again to accept the default value.
Login shell changed to /bin/bash.
  1. Close the terminal window and open a new one to start using bash as your default shell.

By following these simple steps, you can easily change the default shell from dash to bash and enjoy all the benefits that come with it. Happy coding!