Linux-find Find

Source: Internet
Author: User
Tags file permissions

# Linux File no create Time # Access use time  # Modify Content modification Time  # change state changed time (permissions, owner) # time is default in 24 hours, current time to 24 hours forward 0 days, 48-72 hours ahead for 2 days #- And and match two condition parameters to determine the time range-mtime +2-and-mtime-4#-or or match any one of the conditions

  

FIND/ETC-name HTTP # finds find by file name.-Type F # Find a file of type find/ -Perm # Finding Find by file permissions/ -User # finds find by file owner/ -Group # finds files according to the groups to which the files belong find/-atime-N # File usage time within n days find/-atime +N # File usage time by N days ago Find/-mtime-N # File content change time within n days find/-mtime +N # File content change time by N days ago Find/-ctime +N # File status change time n days ago Find/-ctime-N # File status change time within n days find/-size +1000000c-Print # Find files longer than 1M bytes find/etc-name"passwd*"-exec grep"Xuesong"{} \; # Find files by name pass to-exec Post command find.-name't*'-exec basename {} \; # Find the file name, do not take the path to find. -type F-name"err*"-Exec Rename err err {} \; # batch rename (find Err Replace with err {} file Find path-name *name1*-or-name *name2* # find any keyword

Linux-find Find

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.