How to run a command with the boot

Hi, i have a rig of 6 Vega 64 and I would like to run this command automatically when I turn on the system: amdmemtweak --CL 16 --RAS 30 --RCDRD 12 --RCDWR 5 --RC 44 --RP 10 --RRDS 3 --RRDL 5 --RTP 5 --FAW 20 --CWL 7 --WTRS 4 --WTRL 9 --WR 16 --WRRD 1 --RDWR 19 --REF 17550 --MRD 8 --MOD 15 --PD 8 --CKSRE 10 --CKSRX 10 --RFC 300
I found something about rc.local but I’m not able to find it.

add to /home/user/xinit.user.sh

working only with Enabled GUI

you can change first line do #!/bin/bash

Thanks for the answer, I tried in every way that I found on internet but I don’t really know how to edit the file. Can you explain how I can do it?

you must log in to the console - be it via ssh or hiveshell, then enter the appropriate commands in the pico editor.

You can also try by running the command from web:

echo "" >> /home/user/xinit.user.sh; echo "amdmemtweak --CL 16 --RAS 30 --RCDRD 12 --RCDWR 5 --RC 44 --RP 10 --RRDS 3 --RRDL 5 --RTP 5 - FAW 20 --CWL 7 --WTRS 4 --WTRL 9 --WR 16 --WRRD 1 --RDWR 19 --REF 17550 --MRD 8 --MOD 15 --PD 8 --CKSRE 10 --CKSRX 10 --RFC 300 ">> /home/user/xinit.user.sh