首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在运行时查看udev操作?

如何在运行时查看udev操作?
EN

Ask Ubuntu用户
提问于 2017-11-24 16:08:26
回答 1查看 7.7K关注 0票数 2

是否存在一个udev命令,允许我在终端上实时(在运行时)查看新设备附加时设备节点的创建?

在使用tail命令可视化日志时会发生一点:tail -f /var/log/syslog

EN

回答 1

Ask Ubuntu用户

发布于 2018-04-03 01:48:12

是的,只有一个直接的(不是从任何原木)。

代码语言:javascript
运行
复制
sudo udevadm monitor

或者仅用于udev的清洁输出:

代码语言:javascript
运行
复制
sudo udevadm monitor -u

参考:man udevadm

代码语言:javascript
运行
复制
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.
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/979856

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档