mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-05 12:00:16 +00:00
16 lines
373 B
Plaintext
16 lines
373 B
Plaintext
# 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
|
|
|