Как я могу видеть действия udev во время выполнения?

Есть ли команда udev, которая позволяет мне видеть в реальном времени (во время выполнения) на терминале создание узла устройства при подключении нового устройства?

Немного как происходит при использовании команды tail для визуализации журнала: tail -f /var/log/syslog?

1
задан 3 April 2018 в 04:51

2 ответа

Да, существует только прямая (не из любого журнала).

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.
2
ответ дан 18 July 2018 в 02:40

Да, существует только прямая (не из любого журнала).

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.
2
ответ дан 24 July 2018 в 17:37

Другие вопросы по тегам:

Похожие вопросы: