Using Linux to get the UDID iPhone - rsajob/docs GitHub Wiki
To read the UDID in Linux just use:
lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2
This will print three lines per attached apple device: The manufacturer, the device name and the UDID (called “iSerial”).