Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 101-500 Topic 2 Question 105 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 105
Topic #: 2
[All 101-500 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

Destiny
1 months ago
A and C are the way to go. Seriously, who uses --path and --uid these days? That's so last decade.
upvoted 0 times
...
Annelle
1 months ago
Haha, I bet the person who wrote this question is a real stickler for details. Either way, I'm going with A and C - can't go wrong with the good old find command!
upvoted 0 times
Ilene
10 days ago
I agree, the find command is always a safe bet.
upvoted 0 times
...
Ronald
17 days ago
I think A and C are the correct answers.
upvoted 0 times
...
...
Hermila
2 months ago
I'm not sure, but I think C) could also be a valid option since it specifies the user root with --uid
upvoted 0 times
...
Shawn
2 months ago
I think B and E are the right answers. Using the --path option with find is a more direct way to search within the /tmp directory.
upvoted 0 times
Victor
1 months ago
Yes, but using --path with find narrows down the search to the /tmp directory.
upvoted 0 times
...
Queenie
1 months ago
But isn't it find /tmp --user root that lists files owned by user root?
upvoted 0 times
...
Lashon
2 months ago
I agree, using the --path option with find is more direct.
upvoted 0 times
...
Shaniqua
2 months ago
I think B and E are the right answers.
upvoted 0 times
...
...
Yuki
2 months ago
I agree with Elmira, A) and D) make sense because they specify the user root and the directory /tmp
upvoted 0 times
...
Carey
2 months ago
The correct answers are A and C. The find command with the --user or --uid option will list all files and directories owned by the specified user.
upvoted 0 times
Hildred
2 months ago
Thanks for sharing the correct answers!
upvoted 0 times
...
Erick
2 months ago
Oh, I see. Those are the correct commands to list files owned by root in /tmp directory.
upvoted 0 times
...
Pete
2 months ago
C) find /tmp --uid root -print
upvoted 0 times
...
Roslyn
2 months ago
A) find /tmp --user root -print
upvoted 0 times
...
...
Elmira
2 months ago
I think the correct commands are A) and D)
upvoted 0 times
...

Save Cancel