I am trying to find the name of the second USB port in my computer in the director /dev/ since I am trying to find where my AVR micro-controller programmer location to execute this command: avrdude -p t85 -P directoryWhereProgrammerIs -c avrispmkII -e -U flash:w:src.hex. Any suggestions? Thanks!
 
    
    - 177
- 1
- 3
- 9
3 Answers
you can run mount to get the list of all attached devices and their mount locations.
USBs are put under /media/<username> folder.
 
    
    - 2,496
Your are almost done
as long as I know avrdude doesn't need programmer directory and specifying programmer name is sufficient (assume that you already set avr model)
but finding usb drive become handy in working with UART and other similar protocol
You could do that by go to /dev directory disconnect device use ls to list files and then connect it again and repeat ls, you can use diff or other tool to determine your device
*note: most usb programmer use ttyUSB** as node name
 
    
    - 679
You need :
sudo apt-get install usbmount
sudo apt-get install mc
mc
up
up
/media
You will see all you USB ports in this folder . (It look like MS-DOS)
 
    
    - 791