So sometimes Udev rules can be hard to create. Recently I found an easy way to get details that can be copied and pasted into the udev rule.

So if you wanted to find details on /dev/ttyACM2 you could run the following command:

Fish version:

udevadm info -a -p (udevadm info -q path -n /dev/ttyACM2)

Bash version:

udevadm info -a -p $(udevadm info -q path -n /dev/ttyACM2)