QuestionQ32Verified/GNU and Unix CommandsCopy linkReport a problemAsk AstroTutorSave questionWhich of these commands displays the IDs of every process owned by root?Choose twoApgrep -c rootBpgrep -u rootCpgrep -f rootDpgrep -U 0Epgrep -c 0Show AnswerAnswerExplanationpgrep -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.Show comments7Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion