If you want to actually clear the terminal and not to have your terminal screen just scrolled down, then this script is for you!
Now it's written as a shell script, so you don't have to compile it yourself and it works on Linux and Mac OS.
When you want to clear your terminal screen, write a command:
cls
- Open a terminal in a directory where is install.sh and run:
sh install.sh
- Reopen terminal
- If you don't want to use install.sh to install the script, you can write the next command in terminal in a directory where cls is:
sudo cp cls /usr/local/bin/
- Reopen terminal