Ubuntu – Can we move mouse cursor by keyboard command in Ubuntu


Suppose my mouse suddenly get died while working on a live web page. But my mouse cursor is present there. Now can I move the cursor by keyboard command and , select any option on that web page?

Best Answer

  • If you indeed want do that from the command line, then you can install xdotool (it is packaged in Ubuntu 16.04 at least) and issue commands like this:

    xdotool mousemove 10 500 && xdotool click 1