Comment 9 for bug 350988

Revision history for this message
rc3 (midnightcodr) wrote :

Sorry about the example I listed earlier, that command will only show the full path for the video0 device, to get all information, use
    udevadm info -a -p $(udevadm info -q path -n/dev/video0)

To get information about /dev/sda1
    udevadm info -a -p $(udevadm info -q path -n/dev/sda1)

Another not-too-complicated example:
    udevadm info -a -p /sys/class/net/eth0

To see more examples, here's a good one:
    http://reactivated.net/writing_udev_rules.html
It also teaches you how to write udev rules.