Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    It is VERY BAD ADVICE suggesting to use tput clear to "clear the screen" because you didn't also note that it clears the terminal's SCROLL BUFFER - which destroys any history a user was planning to capture from the scroll buffer. Commented Sep 21, 2023 at 4:58
  • Hi @FKEinternet, they said they want to monitor the output of f, which I take as "they want to look at it right now, and not the history". If you think of what monitoring actually means, you'll find yourself thinking of people looking at warning lamps and gauges in for example a power plant control room - and not at the log of the last few hours of gauge readings. Feels to me like relying on a scroll back buffer is generally not optimal. Commented Sep 21, 2023 at 7:35
  • 1
    Still, I'm very thankful for the improvement of my answer and the warning is fair. I shortened your proposed wording a bit and took it. Thanks! Commented Sep 21, 2023 at 7:38
  • @FKEinternet you can run clear or press Ctrl+L to clear the screen without messing up the scroll history Commented Sep 21, 2023 at 7:45
  • @FKEinternet thinking about that, tput clear might have the less-invasive effect of just clearing the current screen, at the expense of risking that setting from before survive. Commented Sep 21, 2023 at 7:54