Bird
0
0

Which of the following is the correct syntax to find all files named data.csv in the current directory and its subdirectories?

easy📝 Syntax Q3 of 15
Linux CLI - Searching and Finding
Which of the following is the correct syntax to find all files named data.csv in the current directory and its subdirectories?
Afind / -file data.csv
Bfind . -name 'data.csv'
Cfind data.csv -path .
Dfind -file data.csv .
Step-by-Step Solution
Solution:
  1. Step 1: Recall find command syntax

    The correct syntax is: find [path] -name [filename].
  2. Step 2: Apply to current directory

    Using '.' means current directory and subdirectories.
  3. Final Answer:

    find . -name 'data.csv' -> Option B
  4. Quick Check:

    Correct find syntax for current dir = B [OK]
Quick Trick: Use dot (.) for current directory in find [OK]
Common Mistakes:
  • Using incorrect option -file
  • Swapping path and filename
  • Wrong order of arguments

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes