AVRdude with bootloader and FT232RL

Hello,
I use an Atmega328p with a bootloader installed to upload code with an FT232RL using Arduino IDE.

I'm wondering weather I can use also avrdude from a command line to upload code.

I tried several options:
avrdude -c stk500 -P /dev/ttyUSB0 b 9600 -p m328p -U flash:w:M_Xively.cpp.hex
avrdude -c stk500v1 -P /dev/ttyUSB0 b 9600 -p m328p -U flash:w:M_Xively.cpp.hex
avrdude -c stk500v2 -P /dev/ttyUSB0 b 9600 -p m328p -U flash:w:M_Xively.cpp.hex
and
avrdude -c avrftdi -P /dev/ttyUSB0 b 9600 -p m328p -U flash:w:M_Xively.cpp.hex

I get timeout and sync errors.

What -c (programmer) option I have to use.

Thanks Martin

In the IDE, turn on verbose output on upload (under prefrences).
See and copy the command used by the IDE in the output window. That may give you an idea

Thanks this did it :

avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -V -Uflash:w:/tmp/build1659515447508396337.tmp/M_Xively.app.hex:i

This works also as the path is already set:
avrdude -p m328p -c arduino -P /dev/ttyUSB0 -b 57600 -D -V -Uflash:w:/home/drumanart/Desktop/M_Xibely.cpp.hex