Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose
TWO correct answers.)
#find#uid#user#path#print
A
find /tmp -uid root -print
B
find -path /tmp -uid root
C
find /tmp -user root -print
Correct
D
find /tmp -user root
Correct
E
find -path /tmp -user root –print
Resolution & Explanations
The find command defaults to printing results even if -print is not specified. The -user flag filters by username, while -uid would require a numeric ID.