ZSH or Z shell is a great alternative to the traditional Bash shell of Linux. It acts perfectly as an interactive shell and an interpreter for shell scripts. Moreover, it combines the features of multiple shells, making this shell extremely powerful. After reading this article, you will know exactly the method of installing ZSH on a Linux system.
Method of Installing ZSH in Linux
To install ZSH on a Linux system, you need to follow the procedure explained below:
Step # 1: Update the Linux System
First, you should update your Linux machine with the following command:
$ sudo apt-get update
Step # 2: Install ZSH on Linux
Then, you can install the Z shell on your system with the help of the terminal command provided below:
$ sudo apt-get install zsh –y
Step # 3: Confirm the Installation of ZSH on Linux
To confirm the installation of the Z shell on Linux, you can check its version with the following command:
$ zsh --version
The following output implies that the Z shell was successfully installed on Linux.
How To Remove ZSH from Linux
If you want to get rid of the Z shell at any time, then you simply need to run the following command:
$ sudo apt-get purge --autoremove zsh
With the help of this article, we wanted to share with you the steps of installing the Z shell on Linux. Once you have this shell installed, you can either keep it as a second option or make it your primary or default shell, depending on your preference.