How to Enable, Disable Keyboard, Mouse and Touch Devices via Terminal
Xinput is a utility that gives you configuration options to control mouse, keyboard, touchpad, and touch screen devices in Linux (applicable for all Linux distributions such as Ubuntu and Fedora). It is part of xorg-xinput package, which provides various device services.
Here'a a simple tutorial to demonstrate how you can enable & disable various peripheral devices using Xinput via the terminal.