exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 86 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 86
Topic #: 1
[All LFCS 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
Strib
6 months, 3 weeks ago
The correct answers are A and D. A. find /tmp -uid root -print: This command searches for files and directories within the /tmp directory or its subdirectories that are owned by the user with the username root and prints their paths. D. find /tmp -user root: This command searches for files and directories within the /tmp directory or its subdirectories that are owned by the user with the username root. These commands use the find command with different options to search for files based on user ownership. The -uid option in option A and the -user option in option D both specify the user to match for ownership, which is root in this case. The -print option in option A explicitly prints the path of each matching file, while option D will print the paths by default.
upvoted 1 times
Strib
6 months, 3 weeks ago
Sorry C and D
upvoted 2 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