Tag: Linxux

How to get serial numbers of Linux devices?

How to get serial numbers of Linux devices?

To get a serial number we can use this command: udevadm info -a -n /dev/ttyUSB0 | grep ‚{serial}’ | head -n1 udevadm info -a -n /dev/disk/by-id/ata-OCZ-AGILITY3_OCZ-ABF89Y0W7J4E333X After this we get CEK509 and we add to: cat /etc/udev/rules.d/51-android.rules example SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="1d6b", ATTRS{serial}=="CEK509", SYMLINK+="arduino" tty – […]