Linux file and Directory Operations Basic command: Locate command

Source: Internet
Author: User
Keywords Linux locate commands Directory operations
Tags basic basic command directory directory operations example file files files and directories

Sometimes you know that a file or directory exists, but you don't know where to find it. You can use the Locate command to search for files or directories.

Using the Locate command, you will see each directory or file that includes the search criteria. For example, if you want to search for files with the word finger in all names, type:

Locate finger

The locate command uses a database to locate files and directories with the word finger in a file or directory name. The search results may include a file called Finger.txt, a file called Pointerfinger.txt, a directory named Fingerthumbnails, and so on.

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.