QuestionQ70

VerifiedGNU and Unix Commands

Which commands list every file and directory in /tmp/ and its subdirectories that is owned by user root?

Choose two
Explanation

find /tmp -user root -print recursively searches from /tmp, selects entries owned by root, and explicitly prints each match. find /tmp -user root performs the same search and selection; when no action is specified, find applies its default print action. The -uid predicate requires a numeric user ID, while -path is a pathname-matching expression rather than a starting directory.

Community Discussion

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