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.)
C. find /tmp -user root -print
D. find /tmp -user root
Here's how it works:
The find command is used to search for files and directories within a given directory or its subdirectories.
To search for files and directories owned by a specific user, you can use the -user option followed by the username or UID of the user.
The -print option is used to print the names of the files and directories that match the search criteria.
Option C is correct because it specifies the search directory (/tmp) and the user (root) and uses the -print option to print the matching files and directories.
Option D is also correct because it specifies the search directory and the user, but does not include the -print option. When no action is specified, find automatically prints the names of the matching files and directories.
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.LX0-103 Exam Questions
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.
linux_admin
2 years, 2 months ago