Linux Foundation Certified System Administrator (LFCS) — Question 102

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.)

Answer options

Correct answer: C, D

Explanation

The commands in options C and D correctly use the '-user' flag to identify files owned by root in the /tmp directory. Options A and B are incorrect because they use the '-uid' flag, which is not necessary in this context, and option E is incorrect due to the improper use of the '-path' option with a missing print action.