Error using usb port with AVRdude

Hello,

I tried to check my fusebits from my ATtiny 85 and became this error.

❯ avrdude -c arduino_as_isp -p t85 -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h
OS error: cannot set attributes for port /dev/ttyS0: Inappropriate ioctl for device
Error: unable to open port /dev/ttyS0 for programmer arduino_as_isp

Avrdude done.  Thank you.


I think it is a permission problem for my usb ports
and which port is /dev/ttyS0.

Thanks for every helping person

try running ls /dev/tty* to see the ports list
probably you need to specify port manually…
something like this:
avrdude -c arduino_as_isp -P /dev/ttyACM0 -p t85 -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h