hackbench command not found

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

Introduction

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

hackbench: command not found

or when using sudo you get the following error message

sudo: hackbench: command not found

Solutions to hackbench: command not found

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

In Ubuntu hackbench is provided by rt-tests package.

rt-tests is:

rt-tests contains a set of programs that test and measure various components of real-time kernel behavior, such as timer latency, signal latency and the functioning of priority-inheritance mutexes. Additionally it contains hackbench, a program to generate work for the scheduler.

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

sudo apt-get -y install rt-tests

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

You can also use apt command to install rt-tests.

sudo apt -y install rt-tests

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

sudo aptitude install rt-tests

Summary

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