Linux shell change: recently, due to an attempt, I installed and set the highly recommended zsh, replacing the default bash. after a while, I found a lot of problems, but the same problem is also exposed, for example, there is a problem with executing commands in the zsh background, and so on, so I decided to change the bash, the previous... linux shell change: recently, due to an attempt, I installed and set the highly recommended zsh, replacing the default bash. after a while, I found a lot of problems, but the same problem was also exposed. for example, there was a problem with executing commands in the zsh background, so I decided to change to bash. I forgot the previous method. now I want to record it, so that you do not need to refer to others' blogs for the next change. First, check that all of our systems have available shell [plain] androidyue @ ubuntu :~ /Adb_grep $ cat/etc/shells #/etc/shells: valid login shells/bin/sh/bin/dash/bin/bash/bin/rbash/usr/bin/tmux/bin/csh/bin/tcsh/bin/zsh/usr/ bin/zsh/usr/local/bin/zsh then, you can also search for our current shell [plain] androidyue @ ubuntu :~ /Adb_grep $ echo $ SHELL/bin/zsh the last key to the problem is to execute chsh (meaning change shell). This command requires the root permission and will prompt you to enter the password, then, enter the available target shell in the input focus. [Php] androidyue @ ubuntu :~ /Adb_grep $ chsh Password: Changing the login shell for androidyue Enter the new value, or press ENTER for the default Login Shell [/bin/bash]: final, if you want to take effect, you need to log out and log on (for example, the first command prompts what login shells means, so ...)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.