xdotool command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xdotool: command not found
or when using sudo you get the following error message
sudo: xdotool: command not found
Solutions to xdotool: command not found
How To Fix xdotool: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xdotool is provided by xdotool package.
xdotool is:
xdotool lets you programmatically (or manually) simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11’s XTEST extension and other Xlib functions.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xdotool
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xdotool.
sudo apt -y install xdotool
Or if you have aptitude installed you can use the following command.
sudo aptitude install xdotool
Summary
In this tutorial we learn how to fix xdotool command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.