You want a command line option to clear the terminal.
Clearing the terminal window is highly dependant on what terminal software you’re using. You can create an alias that rights a clear code out that most terminals should support. The alias will allow you to map it to a command line “cls”.
- Edit the “~/.bashrc” file
- Add the following line:
alias cls="echo -ne '\033c'"
- Save the file. You may need to start a new terminal session for this to take effect.
Alternate Method for a Mac running OSX (Unix):
OSX supports a command called “reset”. Using this should clear the terminal window.