Avrdude error stk500_getsync() trying to install grbl

So I've got an uno and the ide has been able to upload sketches but i have decided a 3d printer would be my next project. I'm almost done with everything and expect my stepper motor drivers to arrive in a couple of hours in the mail. I've got kali linux that i use as my main os and its the computer i use most bc i hate windows mostly. Anyway I've gpt Universal gcode sender installed and I've got a test file. The only thing left to do other than wire the motors and wait for my 3d pen is install grbl onto the uno.
Avrdude -v -p atmega328p -c arduino -b 57600 -P /dev/ttyUSB0 -U flash:w:(file.hex):i
That is the code that i spent an hour reading the man page to come up with and i only get an error back.
If anyone could help i would really appreciate it.

Ok so i got it to work i just deleted the -b 57600 and it went smoothly. It had problems connecting to ugs until i changed the settings to 9600 also.