tags:

views:

36

answers:

2

What is the bash command for detecting all currently connected USB devices and getting the /dev/tty... file that corresponds to the USB device.

+2  A: 

Give lsusb a try; for the corresponding file I plug in the device and use dmesg, but there sure is a better way...

Alberto Zaccagni
A: 
dmesg | grep ttyUSB | grep -v grep | grep -o ttyUSB[0-9]
MattyV