xmag command not found

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

Introduction

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

xmag: command not found

or when using sudo you get the following error message

sudo: xmag: command not found

Solutions to xmag: command not found

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

In Ubuntu xmag is provided by x11-apps package.

x11-apps is:

This package provides a miscellaneous assortment of X applications that ship with the X Window System, including:

  • atobm, bitmap, and bmtoa, tools for manipulating bitmap images;
  • ico, a demo program animating polyhedrons;
  • oclock and xclock, graphical clocks;
  • rendercheck, a program to test render extension implementations;
  • transset, a tool to set opacity property on a window;
  • xbiff, a tool which tells you when you have new email;
  • xcalc, a scientific calculator desktop accessory;
  • xclipboard, a tool to manage cut-and-pasted text selections;
  • xconsole, which monitors system console messages;
  • xcursorgen, a tool for creating X cursor files from PNGs;
  • xditview, a viewer for ditroff output;
  • xedit, a simple text editor for X;
  • xeyes, a demo program in which a pair of eyes track the pointer;
  • xgc, a graphics demo;
  • xload, a monitor for the system load average;
  • xlogo, a demo program that displays the X logo;
  • xmag, which magnifies parts of the X screen;
  • xman, a manual page browser;
  • xmore, a text pager;
  • xwd, a utility for taking window dumps (“screenshots”) of the X session;
  • xwud, a viewer for window dumps created by xwd;
  • Xmark, x11perf, and x11perfcomp, tools for benchmarking graphical operations under the X Window System;

The xbiff, xcalc, xconsole, xedit and xman programs use bitmap images provided by the xbitmaps package.

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

sudo apt-get -y install x11-apps

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

You can also use apt command to install x11-apps.

sudo apt -y install x11-apps

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

sudo aptitude install x11-apps

Summary

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