Macbook Tip: iTerm2 clearing your scroll back history

I frequently forget this command shortcut, so this post is simply because I am lazy. To clear your history in iTerm press Command + K. Control + L only clears the screen, so as soon as you run the next command you will see the scroll back again.

If you want to view your command history (for terminal) type:

$ ls -a ~ | grep hist
.zsh_history
$ cat .zsh_history

One thought on “Macbook Tip: iTerm2 clearing your scroll back history”

  1. I’d prefer to use `less $HISTFILE`
    So, no matter what you name the command line history file

Leave a Reply

Your email address will not be published. Required fields are marked *