How to Install ZSH on Ubuntu 20.04

Install ZSH on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure ZSH on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

ZSH appears to be the future of console/terminal interaction on computers. It has multiple improvements over the Bash shell and includes the best features of the Bash, KSH, and tcsh shells. It is preferred over others because it provides us with a number of different customization options.

Install ZSH on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install ZSH on the Ubuntu system.

ZSH is available on the default Ubuntu 20.04 default repository. You need to type the following command in your terminal followed by pressing the Enter key:

sudo apt install zsh

To check the installed version of ZSH:

zsh --version

Install Oh-My-Zsh Plugin

Now we install this plugin on with Zsh shell:

sudo apt install git-core curl fonts-powerline

Then, run the following command to install this plugin on your system:

sh -c "$(curl -fsSL"

Among all features in OH-MY-ZSH, I love the set of themes that comes in a bundle with the installation. It visually improves my terminal look and feel. Themes are installed under “/home/linuxtips/.oh-my-zsh/themes/“:

$ ls /home/linuxtips/.oh-my-zsh/themes/

You may like to change the Zsh theme by editing ~/.zshrc file on your system:

sudo nano ~/.zshrc
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See

Step 3. Accessing Zsh Shell Terminal.

To launch a Zsh shell terminal just type “zsh” from your current shell:


That’s all you need to do to install ZSH on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on ZSH, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.