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
[email protected]:~# 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
[email protected]:~#
tail -f /var/log/dmesg
(Nothing has been logged yet.)
/var/log/syslog插拔usb都会产生日志
# tail -f /var/log/syslog
原文地址:https://www.cnblogs.com/xuanbjut/p/12625397.html
时间: 2024-10-29 08:49:53