Unix/Linux use the Find command to Find files

Source: Internet
Author: User
Unix/Linux use the Find command to find the file to find the empty directory: find/path-depth-typed-emptywww.2cto.com to Find the empty File: find/path-depth-typef-empty find the file by name: find/path...
In Unix/Linux, run the Find command to search for an empty directory: find/path-depth-type d-empty www.2cto.com: find/path-depth-type f-empty find the file by name: find/path-name name_of_file find the file by extension: find/path-name "*. given_extension ": find/path-name '*. txt '-perm 644 searches for a file based on the permission attributes of the file: find/path-perm-permision_bits www.2cto.com without knowing the extension. only the file name is used to find the file: find/path-name 'giveen _ name. * 'find the file that has been modified within 24 hours: find/path -Mtime n here n, 0 represents 24 hours, 1 represents 48 hours, 2 represents 72 hours. The same is true for n below. Find the files that have been retrieved from the memory in the last 24 hours: find-atime n www.2cto.com search for the files deleted by the owner: find/path-user root: find/path-name mytestfile | xargs rmiCC Develop Center
 
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.