본문 바로가기

연구 관련

How to clear the ubuntu terminal

반응형

In the terminal, use the following command;

$ printf "\033c"


You can also define an alias in the bash file.

$ gedit ~/.bashrc


Add the following line at the end of the file.

alias cls='printf "\033c"'


Then you can use cls to clear the terminal anytime you want.

반응형