udevadm test /sys/class/net/eth0

Category: Administration

udevadm test /sys/class/net/eth0

Dry-run udev rules for one device

Simulates a udev event for the eth0 network device, printing every rule that matches and the resulting actions and properties. Nothing is changed on the system, making this the safe way to debug a rule. Pass --action=add or --action=remove to test a specific event type.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.