1

Is there a way to clear only the last output from terminal?

I've already read How to clear previous output in Terminal in Mac OS X? but that clears the entire terminal (Cmmd + K)

I want this because say I'm done looking into something but it's taking all my screen space and I want to get rid of that, but not all the previous outputs

ranemirusG
  • 143
  • 2
  • 16
mfaani
  • 33,269
  • 19
  • 164
  • 293
  • I you want to clear output which is _taking all my screen space_, how is that different from a way _that clears the entire terminal_? – Armali Feb 13 '19 at 09:29
  • When it's there I have to scroll up. When it's not I don't have to. – mfaani Feb 13 '19 at 09:55

1 Answers1

0

I accidentally clicked on Cmd + L and it worked.

Looking it up here I found terminal-mac-cheatsheet.

mfaani
  • 33,269
  • 19
  • 164
  • 293