I have set of a .gdbinit file to run commands each time gdb is called. These commands output a lot of stuff in the shell, and it's becoming annoying.
Can I prevent commands inside .gdbinit to print to the shell?
Yep, all of information, that have to output in the shell, you can prevent in .gdbinit You can look at example of ./gdbinit from this guy http://reverse.put.as/