Overview
The below shortcut can be used to clear the terminal screen on Mac
cmd + k
Once the above shortcut is executed, then the terminal screen will be cleared. Also, the screen will be on-scrollable after that and there will be no way to get the previous content back
Example
Let’s say below is the state of the screen
/ $ pwd
/
/ $
Now press
cmd + k
The screen will be cleared
/ $
Try scrolling. You won’t be able to scroll to the previous commands. ‘pwd’ command will not be shown after the above shortcut is pressed.