Ubuntu: Clear terminal screen

 

Sometimes you may wish to clear the terminal window, whether it be to hide what you’ve just done, clear some irrelevant/distracting output or any other reason. The best command to do this is simple:

 

reset

 

This completely clears the output shown in your terminal window but doesn’t log you out. If you want to keep your output in the buffer (i.e. so you can scroll back up to it) but still clear the terminal you can see you can use the following key combination:

 

ctrl+L

 

This pushes the output up above your prompt and puts the prompt at the top of your window.

 

 


Posted

in

, ,

by