How to really clear the terminal?

Yes, the command you're looking for is

reset

In contrast to clear, or Ctrl+L, reset will actually completely re-initialise the terminal, instead of just clearing the screen. However, it won't re-instantiate the shell (bash). That means that bash's state is the same as before, just as if you were merely clearing the screen.

As @Ponkadoodle mentions in the comments, this command should do the same thing more quickly:

tput reset

From the other answers:

  • You can set a Keyboard Shortcut to reset the terminal, as explained by towolf.

  • If you're running Kubuntu, and your terminal is Konsole, you need to go to Edit → Clear history, since reset doesn't work the same way there, as UncleZeiv notes.


I was looking for this for a while and I found some genius that posted this:

clear && printf '\e[3J'

Clears the whole screen buffer, very clean. Works on OS X and believe it works fine on most *nix terminals.

For curious, this part '\e[3J' is a terminal escape command.


You can also assign a shortcut in gnome-terminal by going to Edit → Keyboard Shortcuts. I useShift+Ctrl+Alt+C.

reset and clear shortcut