How to install the zsh shell on Linux && How to set it as a default login shell

Source: Internet
Author: User

Z Shell ' s (zsh) popularity has increased in the last years. I have no moved too zsh yet, but I am going to do.

Zsh is isn't installed in Linux by default, but it can be installed easilly with a package Manager:

1. Check If ZSH is already installed on your Linux:

$ < /etc/shells grep zsh
/bin/zsh
/usr/bin/zsh

If you get a output (like I-got), it means zsh already exists on your OS. If not, feel free to install it.

2. Download and install the Z shell:

For Debian based distros:

$ sudo apt-get install zsh

For Red Hat based distros:

$ sudo yum install zsh

For Suse based distros:

$ sudo zypper install zsh

To simple with zsh, type zsh in your terminal:
$ zsh

3. How to set zsh as the default login shell:

This works on Fedora/debian/opensuse:chsh -s /bin/zsh user

$ sudo chsh -s /bin/zsh yoda
$ finger yoda | grep zsh
Directory: /home/yoda Shell: /bin/zsh

If you want to customize the Z-shell, edit ~/.ZSHRC:

vim ~/.zshrc

REF:

http://linuxg.net/how-to-install-zsh-shell-how-to-set-it-as-a-default-login-shell/

How to install the zsh shell on Linux && How to set it as a default login shell

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.