Bird
0
0

Which of these is the correct syntax to find files named report.txt in the current directory?

easy📝 Syntax Q12 of 15
Linux CLI - Searching and Finding
Which of these is the correct syntax to find files named report.txt in the current directory?
Afind -name report.txt .
Bfind . -name report.txt
Cfind report.txt -name .
Dfind . report.txt -name
Step-by-Step Solution
Solution:
  1. Step 1: Recall find command syntax

    The correct syntax is find [path] -name [filename].
  2. Step 2: Match syntax to options

    find . -name report.txt uses find . -name report.txt, which is correct.
  3. Final Answer:

    find . -name report.txt -> Option B
  4. Quick Check:

    Correct syntax = find . -name report.txt [OK]
Quick Trick: Use: find [path] -name [filename] [OK]
Common Mistakes:
  • Placing -name after filename
  • Swapping path and name arguments
  • Omitting the dot for current directory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes