Clear Ubuntu terminal or WSL without clearing history – Code Example

Total
0
Shares

In this article we will provide your code for clearing Ubuntu terminal or WSL windows command line without clearing history. Use clear command with -x attribute.

Note: Remember to use lowercase x.

Code Example –

[email protected]: clear -x
clear -x to clear the terminal but preserving the history