Skip to content

Instantly share code, notes, and snippets.

@sgsheg
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgsheg/5de4f842420567b98832 to your computer and use it in GitHub Desktop.
Save sgsheg/5de4f842420567b98832 to your computer and use it in GitHub Desktop.
修改linux默认的sh

Try linux command chsh.

The detailed commands is chsh -s /bin/bash. It will prompt you to enter your password. Your default login shell is /bin/bash now.

The following is quoted from man page:

The cash command changes the user login shell. This determines the name of the users initial login command. A normal user may only change the login shell for her own account, the superuser may change the login shell for any account.

This command will change the default login shell permanently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment