p:~# cat /proc/bus/input/devices |grep usb
P: Phys=usb-0000:00:05.1-1/button
S: Sysfs=/devices/pci0000:00/0000:00:05.1/usb2/2-1/2-1:1.0/input/input15
root@kylin-CZC-LS3A3000-LS7A-laptop:~# cat /proc/bus/input/devices |grep usb
P: Phys=usb-0000:00:05.1-1/button
S: Sysfs=/devices/pci0000:00/0000:00:05.1/usb2/2-1/2-1:1.0/input/input15
root@kylin-CZC-LS3A3000-LS7A-laptop:~#
tail -f /var/log/dmesg
(Nothing has been logged yet.)
/var/log/syslog插拔usb都会产生日志
# tail -f /var/log/syslog