I am trying to capture linux keyboard/mouse input, and I am reading events from like /dev/input/event2. But it seems the input are sometimes directed to /dev/
/dev/input/event2
/dev/
Just stumbled across this -- rather late in the day.
You can find out the names and other attributes of different devices using:
cat /proc/bus/input/devices