Peek is a small utility that allows a Linux user to record a portion of the screen to a video or animated GIF. Sooner or later you will need Peek, so here's how to install it on your Linux machine.
sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt install peek
References: Peek on GitHub