slop command not found

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

Introduction

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

slop: command not found

or when using sudo you get the following error message

sudo: slop: command not found

Solutions to slop: command not found

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

In Ubuntu slop is provided by slop package.

slop is:

slop (Select Operation) is an application that queries for a selection from the user and prints the region to stdout. It grabs the mouse and turns it into a crosshair, lets the user click and drag to make a selection (or click on a window) while drawing a pretty box around it, then finally prints the selection’s dimensions to stdout.

Features:

  • Hovering over a window will cause a selection rectangle to appear over it.
  • Clicking on a window makes slop return the dimensions of the window.
  • Clicking and dragging causes a selection rectangle to appear, renders pretty well (compared to scrot). And will return the dimensions of that rectangle in absolute screen coords.
  • On startup it turns your cursor into a crosshair, then adjusts the cursor into angles as you drag the selection rectangle.
  • Supports simple arguments:
    • Change selection rectangle border size.
    • Select X display.
    • Set padding size, even negative padding sizes!
    • Set click tolerance for if you have a shaky mouse.
    • Set the color of the selection rectangles to match your theme! (Even supports transparency!)
  • Remove window decorations from selections.
  • Supports OpenGL hardware acceleration.
  • Supports textured themes.
  • Supports programmable shaders.
  • Supports a magnifying glass.

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

sudo apt-get -y install slop

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

You can also use apt command to install slop.

sudo apt -y install slop

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

sudo aptitude install slop

Summary

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