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.)
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.)
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.
Just tried the two highlighted options on RedHat Linux 9 and they work!
Answer is correct
Answer: AD