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.)
The two correct commands for printing all files and directories within the /tmp directory or its subdirectories that are owned by the user root are:
A. `find /tmp -uid root -print`
C. `find /tmp -user root -print`
These commands use the `find` command to search within the /tmp directory and its subdirectories for files and directories with the owner (user) set to root and then print the results.
Command D is also correct:
D. find /tmp -user root
This command uses the -user option to search for files and directories owned by the user root within the /tmp directory and its subdirectories. It doesn't explicitly use the -print option, but the default action of find is to print the matching results, so it will display the files and directories owned by root.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
DuboisNicolasDuclair
1 year, 4 months ago