What is locate command used for in Linux?

Experience Level: Junior
Tags: Linux


The locate command is used to find the files by name. There is two most widely used file searching utilities accessible to users are called find and locate. The locate utility works better and faster than find command counterpart because instead of searching the file system when a file search is initiated, it would look through a database. This database contains bits and parts of files and their corresponding paths on your system. By default, locate command does not check whether the files found in the database still exist and it never reports files created after the most recent update of the relevant database.


No Comments Yet.
Be the first to tell us what you think.
Linux for beginners
Linux for beginners

Are you learning Linux ? Try our test we designed to help you progress faster.

Test yourself