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

Linux Foundation LFCS Exam - Topic 7 Question 45 Discussion

Which command chain will count the number of regular files with the name of foo.txt within /home?
B) find /home -type f -name foo.txt | wc -l
A) ls -lR /home | grep foo.txt | wc -l
C) find /home -name foo.txt -count
D) find /home -name foo.txt | wc -l
E) grep -R foo.txt /home | wc -l

Linux Foundation LFCS Exam - Topic 7 Question 45 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 45
Topic #: 7
[All LFCS Questions]

Which command chain will count the number of regular files with the name of foo.txt within /home?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Lenna
10 months ago
I’m surprised E is even an option!
upvoted 0 times
...
Jennifer
11 months ago
A is way too complicated for this.
upvoted 0 times
...
Clare
11 months ago
Wait, C has a -count? That's not a thing!
upvoted 0 times
...
Yvette
11 months ago
I think D works too, but B is cleaner.
upvoted 0 times
...
Madalyn
11 months ago
Option B is the best choice!
upvoted 0 times
...
Barbra
11 months ago
I have a vague memory that using -count isn't a valid option in option C, so I would rule that one out.
upvoted 0 times
...
Jesusita
11 months ago
I practiced a similar question, and I feel like option A might be too broad since it lists all files first.
upvoted 0 times
...
Kirby
11 months ago
I'm not entirely sure, but I remember something about using wc -l to count lines. Maybe option D is also a good choice?
upvoted 0 times
...
Nicolette
12 months ago
I think option B is the right one because it uses find with the correct parameters for counting files.
upvoted 0 times
...
Bettina
12 months ago
Holding firm on scope and rejecting changes might be tempting, but that's probably not the best approach in the long run. I think a more flexible change management process is the way to go.
upvoted 0 times
...
Vince
12 months ago
SVG sounds like the right answer to me. The question specifically mentions the W3C recommendation for 2D vector graphics in XML, and that's exactly what SVG is designed for.
upvoted 0 times
...
Weldon
12 months ago
Okay, let's see. The question is asking what can be auto-numbered using the Payables System Options form. I'm going to read through the answer choices and see which one makes the most sense.
upvoted 0 times
...

Save Cancel