2

The top -u mary command allows me to see all jobs running by user mary. What is the command to show the complement of that: all top processes except the jobs running by mary?

2 Answers 2

4

This command will exclude all processes having mary as a user or process name:

top | grep -v mary
3

Similar to kamil's answer but doesn't exclude (hypothetical) processes named mary:

top | awk '$3 != "mary"'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .