How to save settings in gdb? May 11, 2023 by Tarik Add any commands you want to auto run in the .gdbinit file in your home directory.