Is there a way (MAC OSX) to keep all the commands you entered in the terminal history but clear all the results of those commands from the visual display?
1 Answer
The keystroke ctrl-L or the command clear
will clear the screen. Your Bash history is not affected at all.
-
5Although those only clear the terminal screen. They don't clear the scrollback, if that's what @wheresrhys is asking. For that, use View > Clear Scrollback (Command-K). Commented Feb 10, 2012 at 18:19
history
to only contain the commands you enter, not any output.