Find command for one of the files under Linux

Source: Internet
Author: User

Reference article: https://www.kafan.cn/edu/60044166.html

How Linux looks for a file name that contains a specific string: http://www.jbxue.com/LINUXjishu/9790.html

Find by file name

Find Lookup scopes-name The file name of the files to find

Find/home/test-name Emp.data

No Error Lookup

Ordinary users find a large range, will be reported permission denied through 2>/dev/null to solve

Find/-name Emp.data 2>/dev/null
Find/-name "sqlite*" 2>/dev/null

End With CTRL + C when you're done looking.

Find by partial file name

1. Find the file beginning with EMP;

Find/-name "emp*" 2>/dev/null

2, to find the p.data end of the document;

Find/-name "*p.data" 2>/dev/null

3. Find files that contain MP.D.

Find/-name "*mp.d*" 2>/dev/null

Find command for one of the files under Linux

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.