schedtool command not found

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

Introduction

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

schedtool: command not found

or when using sudo you get the following error message

sudo: schedtool: command not found

Solutions to schedtool: command not found

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

In Ubuntu schedtool is provided by schedtool package.

schedtool is:

Schedtool can query or alter a process’ scheduling policy in Linux, specifically assigning SCHED_NORMAL, _FIFO, _RR, _BATCH, _ISO or _IDLEPRIO. It can set static priority for _FIFO and _RR. Setting CPU-affinity and (re)nicing is also possible, making schedtool the definitive interface to Linux scheduler.

It can be used to avoid skips and glitches in A/V applications, to lock processes onto given CPUs on SMP/NUMA systems, which may be beneficial for networking or benchmarks, or to adjust nice-levels of lesser important jobs to maintain a high amount of interactive responsiveness under high load. It is also handy to manage realtime processes.

If you don’t know about scheduling policies, you probably don’t want to use this program - or learn and read “man sched_setscheduler”.

Some supported scheduling policies (such as SCHED_ISO, or SCHED_IDLEPRIO) need a patched kernel (eg. Con Kolivas’ -ck patchset).

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

sudo apt-get -y install schedtool

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

You can also use apt command to install schedtool.

sudo apt -y install schedtool

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

sudo aptitude install schedtool

Summary

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