Wednesday, January 16, 2013

Backtrack basics 13: Effective search with locate

The quickest way to find a file in BT (and usually Linux), is using the "locate" command, which will search in a small database (mlocate.db in case of BT). The database is updated regularly by the fork background process, however we can update it as well, cause that might be not fast enough.

Here is the usage:

locate file.txt - search for file.txt (basically this can be any string, and will search it in the full path)
updatedb - update database

We can see in the example below the behavior described above.

No comments: