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.

3
  • thank you! how would I go about only retrieving that single process to show? Commented Jan 5, 2022 at 0:28
  • 1
    @rachel On a reasonably sized but idle server I have almost 900 processes with 0.0% CPU usage. How do you pick a single process out of that list? Commented Jan 5, 2022 at 1:49
  • I fear the attempt to "filter out" only the on task with the lowest CPU will yield that very task - e.g. "top -b -n 1 -o %CPU | tail -1" will run top in batch mode, exactly once, sorted by CPU descending and then discards all but the last line. However that last line will probably be the "tail" process itself. Commented Jan 6, 2022 at 0:55