101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 36


Which of the following commands list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root? (Choose two.)

Show Answer
Correct Answer: AD

The 'find' command is commonly used to search for files and directories in Unix-based systems. Option A 'find /tmp -user root -print' and Option D 'find /tmp -user root' will both search within the /tmp directory and its subdirectories for files and directories owned by the user 'root'. The '-user root' flag identifies files owned by the user 'root', and the options are correctly formatted to perform the specified task. While Option D does not explicitly include '-print', it is implied, as the default behavior of 'find' is to print the results.

Discussion

3 comments
Sign in to comment
kleverOptions: AC
Oct 11, 2022

Just tried the two highlighted options on RedHat Linux 9 and they work!

mrfstop
Jan 24, 2024

Answer is correct

NinymoOptions: AD
Mar 24, 2024

Answer: AD