QuestionQ32

VerifiedGNU and Unix Commands

Which of these commands displays the IDs of every process owned by root?

Choose two
Explanation

pgrep -u root filters processes by the effective user named root, and pgrep -U 0 filters by real user ID 0, which is root. Without the count option, both commands output the matching process IDs.

Community Discussion

No comments yet. Be the first to start the discussion!