clear command or Ctrl+L do not actually clear the terminal screen in linux. They just fools the user into thinking the screen has been cleared. You can still see the output from the previous commands when you scroll up using the mouse. So, what actually solves the purpose? Check it out here!!