You can abbreviate a GDB command to the first few letters of the command name, if that abbreviation is unambiguous; and you can repeat certain GDB commands by typing just Enter. You can also use the Tab key to get GDB to fill out the rest of a word in a command (or to show you the alternatives available, if there's more than one possibility).
You may also place GDB commands in an initialization file and these commands will be run before any that have been entered via the command line. For more information, see:
- gdb in the Utilities Reference
- the GNU documentation for GDB