timg command not found

In this troubleshooting guide we learn how to fix timg command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

timg: command not found

or when using sudo you get the following error message

sudo: timg: command not found

Solutions to timg: command not found

How To Fix timg: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu timg is provided by timg package.

timg is:

A user-friendly viewer that uses 24-Bit color capabilities and unicode character blocks to display images, animations and videos in the terminal.

On terminals that implement the Kitty Graphics Protocol or the iTerm2 Graphics Protocol this displays images in full resolution.

Useful if you want to have a quick visual check without leaving the comfort of your shell and having to start a bulky image viewer. Sometimes this is the only way if your terminal is connected remotely via ssh. And of course if you don’t need the resolution. While icons typically fit pixel-perfect, larger images are scaled down to match the resolution.

The command line accepts any number of image/video filenames that it shows in sequence one per page or in a grid in multiple columns, depending on your choice of –grid. The output is emitted in-line with minimally messing with your terminal, so you can simply go back in history using your terminals' scroll-bar (Or redirecting the output to a file allows you to later simply cat that file to your terminal. Even less -R seems to be happy with it).

To fix this problem, we can install more using the command below.

sudo apt-get -y install timg

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install timg.

sudo apt -y install timg

Or if you have aptitude installed you can use the following command.

sudo aptitude install timg

Summary

In this tutorial we learn how to fix timg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.