exam questions

Exam 101-400 All Questions

View all questions & answers for the 101-400 exam

Exam 101-400 topic 3 question 48 discussion

Actual exam question from LPI's 101-400
Question #: 48
Topic #: 3
[All 101-400 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
DuboisNicolasDuclair
1 year, 4 months ago
Selected Answer: AC
The two correct commands for printing all files and directories within the /tmp directory or its subdirectories that are owned by the user root are: A. `find /tmp -uid root -print` C. `find /tmp -user root -print` These commands use the `find` command to search within the /tmp directory and its subdirectories for files and directories with the owner (user) set to root and then print the results. Command D is also correct: D. find /tmp -user root This command uses the -user option to search for files and directories owned by the user root within the /tmp directory and its subdirectories. It doesn't explicitly use the -print option, but the default action of find is to print the matching results, so it will display the files and directories owned by root.
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