How to Install Z Shell(zsh) on Linux?
Last Updated :
05 Oct, 2021
The
ZSH or
Z Shell is a Unix based shell or can be called as a command-line interpreter. It is an extended version of the good old
Bourne shell (sh). It does have some features form Bash with lots of added features like automatic
cd (Change Directory), spell check, path expansion, and many more. It also supports plugins and themes.
Installing ZSH on Ubuntu
Step 1: First, we will have to update the repository by running the following command:
sudo apt-get update
Step 2: Now we will install the zsh by running the following command:
sudo apt-get install zsh -y
Step 3: Now we have to make the zsh as our default shell using the following command:
chsh -s /usr/bin/zsh
Note: You will need to enter your password for the user after running the command.
Step 4: Now that we have set the zsh as our default shell, we have to configure it. So, we will run zsh in the terminal to execute it. This will show the
Z shell configuration.
Step 5: Here you can do what is specified by typing the character given at the start of every line. You can quit, go in the main menu and configure the shell your self or you can go for the recommended configuration for the shell by
pressing 2, which is what we have done.
Step 6: After this, the Z shell is ready to use. But the shell is not changed from bash to zsh.
Step 7: You will have to logout of your system and log back in to see the change. Open terminal and you should see the
Z shell started. To check run the following command:
echo $SHELL

As you can see, it showed
/usr/bin/zsh, which means it is successfully set as the default shell.
Similar Reads
How to Install Perl on Linux? Prerequisite: Introduction to Perl Before, we start with the process of Installing Perl on our System. We must have first-hand knowledge of What the Perl Language is and what it actually does?. Perl is a general-purpose, high level interpreted and dynamic programming language. Perl was originally de
3 min read
How to Install PHP on Linux? PHP is a popular server-side scripting language that is especially used in web development. If you're working on a Linux environment, whether it's a personal development setup or a production server, you will likely need PHP installed. In this article, we will see the step-by-step guide to install P
2 min read
How to Install PowerShell in Linux? PowerShell is well-known among Windows administrators. It is a.NET-based task-based command-line shell and scripting language. You can quickly automate tasks for operating system maintenance and much more with PowerShell. PowerShell was once only available for Microsoft Windows. This admin tool, on
2 min read
How to install Zabbix on Linux A system administrator's duties include network management. Zabbix is a free and open-source monitoring tool for administering and monitoring networks. This software is open-source and free, and it has a tonne of functionality. Zabbix is used to monitor resources in the cloud as well as networks, se
2 min read
How to Install Python-sh on Linux? In python, the sh package is a full-fledged sub-process replacement for Python 2.6 - 3.8, PyPy, and PyPy3 that allows you to call any program as if it were a function. So, in this article, we will be installing the sh package in Python on Linux operating system. Installing Sh package on Linux using
1 min read