FG
💻 Software

What is the difference between 'locate' and 'find' in Linux?

Fresh7 days ago
Mar 15, 202663094 views
Confidence Score1%
1%

Problem

Why there are two so similar command in Linux? and normally what are the circumstances to use each of them?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What is the difference between 'locate' and 'find' in Linux?

Low Risk

searches in the real system. Is slower but always up-to-date and has more options (size, modification time,...) uses a previously built database (command ). Is much faster, but uses an 'older' database and searches only names or parts of them. In any case, and will help you further.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment