How Linux finds files using the Find command

Source: Internet
Author: User

Search by File

    • Find/-name http.conf # finds the file httpd.conf in the root directory, representing the entire disk lookup
    • Find/etc-name-name httpd.conf #在/etc directory to find files http.conf
    • Find/etc-name 'SRM' # uses wildcard characters (0 or any number). Find files in the/etc directory that contain the string ' SRM ' in the file name
    • Find. Name ' SRM ' #b表示在当前目录下查找文件开头是字符串 ' SRM ' files


Find by File feature

    • Find/-amin-10 # finds files accessed in the last 10 minutes of the system (access time)
    • Find/-amin-2 #查找在系统中最后48小时访问的文件
    • Find/-empty # finds files or folders that are empty in the file system
    • Find/-group Cat # finds files that belong to group Cat in the system
    • Find/-mmin-5 # finds files that have been modified in the last 5 minutes of the system (modify time)
    • Find/-mtime-1 # finds files that have been modified in the last 24 hours of the system
    • Find/-user Fred # finds files in the system that belong to Fred this user
    • Find/-size +10000c #查找大于10000字节的文件 (c: Bytes, W: Double word, k:kb, M:MB,G:GB)
    • Find/-size-1000k #查找出小于1000kB的文件

How Linux finds files using the Find command

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.