lw-ctl command not found

In this troubleshooting guide we learn how to fix lw-ctl command not found error message

Introduction

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

lw-ctl: command not found

or when using sudo you get the following error message

sudo: lw-ctl: command not found

Solutions to lw-ctl: command not found

How To Fix lw-ctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lw-ctl is provided by loadwatch package.

loadwatch is:

loadwatch forks a child process and only allows it to run when the system load meets user-defined parameters. It allows you to specify that a program should run only if the load is below a specified point, and will stop it when that point is reached. When the load falls below a second specified point, the program will be continued. The user can also specify the system load sampling period.

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

sudo apt-get -y install loadwatch

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

You can also use apt command to install loadwatch.

sudo apt -y install loadwatch

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

sudo aptitude install loadwatch

Summary

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