Skip to content

Welcome to Tech by Example

Menu
  • Home
  • Posts
  • System Design Questions
Menu

Clear terminal screen on Mac Non-Scrollable

Posted on July 8, 2021July 8, 2021 by admin

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.

©2025 Welcome to Tech by Example | Design: Newspaperly WordPress Theme