Inspect device events and query udev state from the shell to debug hotplug actions and rule processing. 23.06.2026 | reading time: 3 min udevadm is the admin tool for udev: use it to watch kernel and udev events, to query device attributes, and to invoke or test rule processing; this article shows concrete commands you can run right now to diagnose and control device handling. Live monitoring Do this: run `udevadm monitor --udev` and then plug a USB stick; you will see event lines such as KERNEL[1234.567890] add /devices/... and UDEV[1234.567891] add /dev/sdb; that immediate feedback tells which device node and udev properties the daemon emits when hardware appears. Inspect device attributes Try `udevadm info --query=all --name=sdb` to read all properties for a block device; the output shows ID_SERIAL, ID_MODEL, DEVLINKS and the sysfs path so you can decide which attribute to match in a rule and reproduce the lookups the kernel performs. Triggering and testing rules When you change rules, run `udevadm control --reload` and then `udevadm trigger` to apply them; for deeper debugging run `udevadm test /sys/class/block/sdb` to see rule evaluation and program execution traces without touching the live device node. Settle and control behavior Use `udevadm settle` in scripts to wait for the udev queue to finish before continuing; use `udevadm control --log-priority=debug` to raise logging for a short period and then inspect system logs to follow how systemd-udevd processed events. Practical troubleshooting flow Monitor events, inspect properties, test rules and then trigger changes; for example detect a missing device name by running `udevadm monitor`, then `udevadm info` to find the missing attribute, then `udevadm test` to validate a corrected rule and finally `udevadm trigger` to apply it for real. Related system tools Combine udevadm with `journalctl` to read udevd logs, with `lsblk` or `blkid` to view block device metadata, and with `systemctl` to control the systemd-udevd service when you need to restart or reload the daemon. Final step Mastering udevadm brings predictable device naming and reliable hotplug behavior; keep practicing with real devices, write small rules and use the testing commands until the behavior is repeatable, and consider deepening skills with certifications such as CompTIA Linux+ or LPIC-1 and intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. setup utilities boot-process troubleshooting storage