Linux often uses commands-File Search command-File Search command find

Source: Internet
Author: User

Command name: Find
Command path:/bin/find
Syntax: find "search scope" "Match criteria"
Description of function: File search

Demo sample
Find/etc-name Init
Find file init in folder/etc
-iname does not distinguish between uppercase and lowercase
* Represents a wildcard?

Represents a character

Find/-size +204800
Look for files larger than 100MB under the root folder
+n greater than-n less than n equals

Find/home-user Shenchao
Find all Shenchao files in the home folder
-group based on the owning group

Find/etc-cmin-5
Find files and folders for properties that have been changed within 5 minutes under/etc
-amin Interview Time Access
-cmin file attribute Change
-mmin File Contents Modify

Find/etc-size +163840-a-size-204800
Find files larger than 80MB less than 100MB under etc
-A two conditions are met at the same time
-O even a condition mother and son no matter what one can

Find/etc-name init-exec ls-l {} \;
Find the init file under etc Ice shows its specific information
-exec/-ok command {} \; Run an action on a search result

-type based on file type lookup
F File D folder L soft connect file

-inum based on I-node lookup

Linux often uses commands-File Search command-File Search command find

Related Article

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.