cheat.sheets:udevadm
# udevadm
# udev management tool
# Reload udev rules without reboot
udevadm control --reload-rules && udevadm trigger
# Get sysfs path of a device
udevadm info -q path -n /dev/sda
# Get a list of attributes for a specific device
udevadm info -a -p $(udevadm info -q path -n /dev/sdb)
# Get an entry for each action taken by KERNEL and UDEV
udevadm monitor --property
tldr:udevadm
# udevadm
# Linux `udev` management tool.
# More information: <https://www.freedesktop.org/software/systemd/man/udevadm>.
# Monitor all device events:
sudo udevadm monitor
# Print `uevents` sent out by the kernel:
sudo udevadm monitor --kernel
# Print device events after being processed by `udev`:
sudo udevadm monitor --udev
# List attributes of a device:
sudo udevadm info --attribute-walk --path /dev/sda1
# Reload all `udev` rules:
sudo udevadm control --reload-rules
# Trigger all `udev` rules to run:
sudo udevadm trigger
$
cheat.sh