Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the tail -f command to follow an error log, and I often want to "clear" the terminal, much in the same way that the clear unix command moves everything above the top of the window. Is there something like this when using tail?

At the moment I just hit return a bunch of times which works okay, but gets rather annoying, especially when I have a tall window.

I am on mac os 10.6.8.

share|improve this question
Can't you just go "View" > "Clear Scrollback" or press ⌘K? – micke Mar 30 '12 at 20:07
⌘K did it! Would you like to make this an answer so I can accept? – AndyPerlitch Mar 31 '12 at 3:18
up vote 15 down vote accepted

View > Clear Scrollback or press +K

share|improve this answer

There isn't. Tail is reading a file, not your input. You could get the source for tail and modify it to behave the way you want, but there's no built in way to do this.

share|improve this answer
You are right that there is not way tail can do this. – Hennes Nov 8 '14 at 21:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.