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?

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"'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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