unxrandr command not found

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

Introduction

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

unxrandr: command not found

or when using sudo you get the following error message

sudo: unxrandr: command not found

Solutions to unxrandr: command not found

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

In Ubuntu unxrandr is provided by arandr package.

arandr is:

ARandR is a visual front end for XRandR, which provides full control over the relative positioning and rotation of monitors, as well as saving and loading to/from shell scripts.

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

sudo apt-get -y install arandr

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

You can also use apt command to install arandr.

sudo apt -y install arandr

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

sudo aptitude install arandr

Summary

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