Find find Files command-common techniques in Linux system collation

Source: Internet
Author: User
Tags file permissions

"Find" in the Linux system is a more commonly used file Lookup command, there are many ways to use, you can find files, files directory, file update time, file size, file permissions and compare file time. The following is a tidy "find" common method, convenient for future needs of the time directly to this article to view.

One, find files or directories

Find./-name file #file请改成自己要差的文件

Second, find the file update time

Find./-mtime-3 #文件更新在3天内的

Find./-mtime +3 #文件更新在3天以上的

Third, find the file size

This may be used more, you can find the file that occupies large disk.

Find./-size-10m #查找文件小于10M

Find./-size +10m #查找文件大于10M

Iv. File Permissions Lookup

Find/home-perm 755 #查找在/home directory permissions are 755 files

V. View comparison file time

Find-newer itbulu.log #itbulu. Log to the name of the file you want to compare

Find find Files command-common techniques in Linux system collation

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.