xmonad command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xmonad: command not found
or when using sudo you get the following error message
sudo: xmonad: command not found
Solutions to xmonad: command not found
How To Fix xmonad: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xmonad is provided by xmonad package.
xmonad is:
Xmonad is a minimalist tiling window manager for X, written in Haskell. Windows are managed using automatic layout algorithms, which can be dynamically reconfigured. At any time windows are arranged so as to maximise the use of screen real estate. All features of the window manager are accessible purely from the keyboard: a mouse is entirely optional. Xmonad is configured in Haskell, and custom layout algorithms may be implemented by the user in config files. A principle of Xmonad is predictability: the user should know in advance precisely the window arrangement that will result from any action.
This package comes pre-configured with the default configuration. If you want to build your custom-configured version, make sure that libghc-xmonad-dev is installed and put your configuration in ~/.xmonad/xmonad.hs
To fix this problem, we can install more using the command below.
sudo apt-get -y install xmonad
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xmonad.
sudo apt -y install xmonad
Or if you have aptitude installed you can use the following command.
sudo aptitude install xmonad
Summary
In this tutorial we learn how to fix xmonad command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.