How do I completely clear a terminal window [duplicate]

Solution 1:

If you type reset it'll totally reinitialize your terminal instead of clearing your screen. You can setup a keyboard shortcut for that.

printf "\033c" also work well and takes less time. You can alias it by alias cls='printf "\033c"' too. Now when you type cls terminal should get cleared.

For more detailed explaination take a look at this Stack Overflow question.