Sharing Gif to express emotions has become so popular in the last few years that I’m sure you must have found them and shared them too. If you are a terminal savvy person, you will not want to leave the command line and go somewhere else to perform any of your daily technical activities. There is always a way to do almost all of our things right in the Terminal. So, why the search for images from the Internet should be different! Using the Terminal makes certain tasks more efficient and even faster. The command line tools do not use too many resources and, thus, form excellent alternatives to widely used graphical applications, especially if you are stuck on old hardware.
In this article, we will explain how you can use the gif-cli command-line tool to search for gifs from the command line. This convenient tool is available in the Snap Store and can be installed both through the Ubuntu Software Manager (UI) and through the Terminal application (command line). However, we will keep all things on the command line today!
We ran the commands and procedures mentioned in this article on the Ubuntu 18.04 LTS system.
You can install gif-cli through the Snap store via the Ubuntu command line. Open the Ubuntu terminal either through a search in the Application Launcher, or using the key combination Ctrl + Alt + T. Enter the following command to update the list of available packages:
$ sudo apt-get update
Since the Snap daemon is shipped by default in recent versions of Ubuntu, we do not need to install it. If you are using an older version, you can use the following command to install the daemon:
$ sudo apt-get install snapd
Now enter the following command to install gif-cli on your Ubuntu:
$ sudo snap install gif-cli
The process may take some time depending on the speed of your internet. A conclusion similar to my one will indicate that the installation is complete, and will also print the version of gif-cli installed on your system.
If you ever want to remove the tool installed using this method, you can use the following command through Terminal:
$ sudo snap remove gif-cli
How to search for a gift
After you have installed the gif-cli tool, let’s see how you can search for gifs using the gif-cli command.
Here is the syntax of the command you will use:
$ gif-cli "search keywords"
For example, to find the gif associated with my favorite Mr.bean, I would use the following command:
The output will be a link to the corresponding GIF from https://media3.giphy.com, You can open this link in any of your favorite web browsers by right-clicking on the link and selecting “open link” in the menu. This is the GIF I received:
The options are unlimited on GIPHY. Now you can easily find gifs via the Ubuntu command line using a simple CLI tool called gif-cli.
Finding GIFs from Ubuntu Command Line Using GIF-Cli