xrestop command not found

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

Introduction

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

xrestop: command not found

or when using sudo you get the following error message

sudo: xrestop: command not found

Solutions to xrestop: command not found

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

In Ubuntu xrestop is provided by xrestop package.

xrestop is:

xrestop uses the X-Resource extension to provide top(1)-like statistics for each connected X11 client’s server-side resource usage. It is intended as a developer tool to aid more efficient server resource usage and debug server-side resource leakage.

xrestop requires the X-Resource extension, supported by XFree86 4.3 and above, and by the freedesktop.org X server.

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

sudo apt-get -y install xrestop

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

You can also use apt command to install xrestop.

sudo apt -y install xrestop

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

sudo aptitude install xrestop

Summary

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