MacOS – OSX equivalent for reset

macosterminal

On linux machines I used to type reset on terminal.

It was like, closing and reopening the terminal!
It is very convenient, because in debugging you wont mix error messages from previous executions.

The command does exists on OSX, however when i scroll up, the previous output is there too!

Best Answer

As you mentioned, reset does work in OS X, however you can combine it with ⌘ cmd + ⌥ alt/option + K to 'Clear Scrollback'. This clears Terminal's history scrollback.

Alternatively, you can just use ⌘ cmd + K to 'Clear All'. This works similarly to how you use reset in Linux.