How clear gdb command screen? July 11, 2023 by Tarik Hit Control + L. Works for me in Linux and Mac OS X as well with recent versions of GDB.