Execute given GDB commands upon start

gdb

gdb -ex "{{commands}}" {{executable}}

click the source code to copy install gdb on any operating system with command-not-found.com