I've been trying to view which devices are connected to my USB ports through terminal in El Capitan, in particular a USB mouse. I've read online that I can ls /dev/tty.*
to view all connected devices. But each time I try this before and after connecting a device, the output does not change.
I've also tried ls /dev
and do not see a change in the output.
I've also tried ls /dev >> before.txt
, then, after plugging in a device (like a mouse), ls /dev >> after.txt'
, then vimdiff before.txt after.txt
. And I still do not see any new devices.
Is this the correct location to be looking in for devices? (namely /dev
)
If not, where should I be looking?
Note, there is not a location for /dev/input
on my machine. Also, I'm doing this because I would like to practice reading the bits from a serial bus and I need access to the bits incoming from the USB port.