Which command updates the database used by locate to find files'?
A.
searchdb
B.
locate.updatedb
C.
find
D.
whereis
E.
which
The Answer Is:
B
This question includes an explanation.
Explanation:
The command locate.updatedb updates the database used by locate to find files. The locate command searches for files by name in a pre-built database of files and directories. The database is usually updated periodically by a cron job, but the locate.updatedb command can be used to manually update it. The command may require root privileges to run, depending on the system configuration. References:
BSD Specialist Exam 702 Objectives, Topic 715: Basic Unix Skills, 715.4 Searching and Extracting Data from Files
FreeBSD Handbook, Chapter 7: Finding and Installing Software, 7.2.3 Using locate(1) to Find Files Quickly
702-100 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"