exam questions

Exam LX0-103 All Questions

View all questions & answers for the LX0-103 exam

Exam LX0-103 topic 3 question 48 discussion

Actual exam question from CompTIA's LX0-103
Question #: 48
Topic #: 3
[All LX0-103 Questions]

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

  • A. find /tmp -uid root -print
  • B. find -path /tmp -uid root
  • C. find /tmp -user root -print
  • D. find /tmp -user root
  • E. find -path /tmp -user root –print
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
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
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago