Bird
0
0

Which command updates the database used by locate to include new files?

easy📝 Conceptual Q2 of 15
Linux CLI - Searching and Finding
Which command updates the database used by locate to include new files?
Alocate --update
Bupdatedb
Clocate -r
Dfind / -name updatedb
Step-by-Step Solution
Solution:
  1. Step 1: Identify the database update command

    The locate database is updated by the command called updatedb.
  2. Step 2: Check other options

    Options A, C, and D are incorrect or unrelated commands.
  3. Final Answer:

    updatedb -> Option B
  4. Quick Check:

    Database update command = updatedb [OK]
Quick Trick: Use updatedb to refresh locate's database [OK]
Common Mistakes:
  • Using locate with wrong flags
  • Trying to update database with locate
  • Confusing find with updatedb

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes