Smart programmer-Remote Control of Linux was writing a program to capture mouse and mouse messages in Linux today. Check the information and see the following information: The mouse and mouse device (including touch and other devices) event exists in the form of a file in/dev/input/event [n]; where n equals to how much, it can be learned through cat/proc/bus/input/devices. After reading these files, you can get the messages triggered by the keyboard and mouse. If you write these files, you can simulate the keyboard and mouse input. Since it is a file, what is the effect of transmitting the event from one machine to another through the network? So I started a small experiment with a try. Server: nc-l 8888>/dev/input/event2 (my machine event2 is the mouse) client: nc SERVER_IP 8888 </dev/input/event2 the experiment is complete. The effect is that the mouse (or keyboard) of a machine can control another machine. It feels like a local operation. It's great! Previously, RDP and usb ip were used. Today, we found that the original Linux native can achieve remote control without installing other software. With such powerful functions and convenient implementation, I can't help but feel the subtlety of Linux. This function mainly benefits from: 1. The principle that everything is file in Linux; 2. Powerful redirection functions; 3. The Swiss Army knife in netcat.