About the LINUXfind command

Source: Internet
Author: User
For more information about the LINUXfind command-general Linux technology-Linux technology and application, see the following. The LINUX find command has powerful functions. For more information, see the following example:

1. Basic Search commands:
Find directory-name file name-print
Example: find/etc-name "rc. sysinit"-print

2. Search for files based on permissions:
Find directory-perm 750-print
Example: find/etc-name "[a-z] [1-9] [a-z] *"-perm 750-print

3. Search for files by user:
Find directory-user username-print
Find/home-user kk-name "*. txt"-print

4. Search for files without users
Find directory-nouser-print
Find/-nouser-print

5. Search for files based on user groups
Find directory-group name
Find/home-group kk-print

6. Search for files without user groups
Find directory-nogroup-print
Find/home-nogroup-print

7. Search for files based on the Creation Time
Find directory-mtime + (-) N-print
Find/home-mtime + 5-print

8. Find Files Based on the Creation Time of other files
Find directory-newer file name! -Newer file name
Find/home-newer "kk "! -Newer "yzk"

9. Search for a file based on the file type
Find directory-type directory type
Find/etc-type d-print

10. Search for files by file size
Find directory-size + Nc
Find/home-size + 1000c-print

11. implement complex functions with executable commands
Find (search type)-exec (executable command)

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.