是否存在一个udev
命令,允许我在终端上实时(在运行时)查看新设备附加时设备节点的创建?
在使用tail命令可视化日志时会发生一点:tail -f /var/log/syslog
?
发布于 2018-04-03 01:48:12
是的,只有一个直接的(不是从任何原木)。
sudo udevadm monitor
或者仅用于udev的清洁输出:
sudo udevadm monitor -u
man udevadm
udevadm monitor [options]
Listens to the kernel uevents and events sent out by a udev rule and
prints the devpath of the event to the console. It can be used to
analyze the event timing, by comparing the timestamps of the kernel
uevent and the udev event.
-u, --udev
Print the udev event after the rule processing.
https://askubuntu.com/questions/979856
复制相似问题