|
Locate a file on your system. Locate does not search the drive for files rather it reads a database that stores file information in it.
|
|
CREATED 2018-08-17 13:59:53.0
|
007-00-00-81
|
UPDATED 2018-08-17 14:00:03.0
|
|
|
|
Some usefull switches for locate:
-c - count: counts the number of occurances of a file.
-i - ignore case
-n - number of lines returned. Expects a parameter.
-s - database statistics. Number of files, directories, etc.
|
|
CREATED 2018-08-17 14:01:35.0
|
007-00-00-82
|
UPDATED 2018-08-17 14:01:57.0
|
|
|
|
Use updatedb to refresh the database. It re-reads the drives and reloads the database.
|
|
CREATED 2018-08-17 14:04:42.0
|
007-00-00-83
|
UPDATED 2018-08-17 14:05:00.0
|
|
|