Relevant knowledge of UDEV under linux (rules of use)

Recently, when working on a program related to mounting a u disk under linux, you need to know about udev.

In the link below, the interface is a bit crowded, but the development of udev and related basic knowledge are introduced in detail: udev explains the
usage rules and debugging

In addition, I saw a related video at station b, which was quite detailed:
04-udev rules and cluster resource management

The first half talked about udev knowledge, very useful.
In addition, in order to learn more, we should also look at some examples of udev rules:
Simple usage of udev in linux
There is also a very detailed
udev usage method (with examples)
and a very smooth
udev rule writing

See another solution
How to obtain U disk plugging and unplugging messages in Linux applications

Determine whether the newly added is added to sdb or sdc or sdn

Method
We can write a shell from the above method to automatically view

Guess you like

Origin blog.csdn.net/ice_masters/article/details/107046507