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](https://i0.wp.com/authors.akashmittal.com/wp-content/uploads/2022/08/image-2.png?resize=820%2C414&ssl=1)
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