grabc command not found

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

Introduction

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

grabc: command not found

or when using sudo you get the following error message

sudo: grabc: command not found

Solutions to grabc: command not found

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

In Ubuntu grabc is provided by grabc package.

grabc is:

grabc is simple but useful program to determine the color string in hex or in RGB components by clicking on a pixel on the screen. When this program is run, the mouse pointer is grabbed and changed to a cross hair and when the mouse is clicked, the color of the clicked pixel is written to stdout in hex and the R, G, B components are written to stderr.

This program can be useful when you see a color and want to use the color in xterm or your window manager’s border but no clue what the name of the color is. It’s silly to use a image processing software to find it out.

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

sudo apt-get -y install grabc

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

You can also use apt command to install grabc.

sudo apt -y install grabc

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

sudo aptitude install grabc

Summary

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