You doesn’t told much details, like which OS you using. I can only assume that it’s PiOS.
To edit the config.txt:
sudo nano /boot/firmware/config.txt
To edit the bootloader/EEPROM config you can use this command:
sudo -E rpi-eeprom-config --edit
After you changed/added the lines, you need to reboot afterwards to activate the new settings.