4-1 Linux Search Command--locate

Source: Internet
Author: User

File Search command: Locate

Command format: Locate [file name]

#在后台数据库中按文件名称搜索, the search is fast.

Database address:/var/lib/mlocate

It is not updated immediately after the new file is created, and the Mlocate database is updated daily and can be forced to update.

Force Update Command: UpdateDB

Locate Search Rules

Locate configuration file in:/etc/updatedb.conf

-prune_bind_mounts = ' yes '

#开始了搜索限制

-Prune =

#搜索时, non-searchable file system

-Prunemaes =

#搜索时, do not search for file types

-prunepaths =

#搜索时, path not searched

4-1 Linux Search Command--locate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.