Linux Common 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"
Function Description: File search

Example
Find/etc-name Init
Find file init in directory/etc
-iname Case insensitive
* Represents a wildcard? Represents a character

Find/-size +204800
Find files larger than 100MB in the root directory
+n greater than-n less than n equals

Find/home-user Shenchao
Find the owner-Shenchao file in the home directory
-group based on the owning group

Find/etc-cmin-5
Find files and directories for properties that have been modified within 5 minutes under/etc
-amin Accessing 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 simultaneously satisfy
-O even a condition mother and child any one can

Find/etc-name init-exec ls-l {} \;
Find the init file under Etc Ice show its details
-exec/-ok command {} \; Perform actions on search results

-type Search by file type
F File D directory l soft connect file

-inum based on I-node lookup

Linux Common 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.