command usage of the Linux find

Source: Internet
Author: User

Find a real hard drive


Find [PATH] [option] [action]

1. Time-related parameters: Total-atime,-ctime and-mtime

Mtime N: 24 hours prior to the day of the document being changed;

Mtime files that were changed +n:n days ago;

Documents changed within the mtime-n:n days;

-newer file: Lists file names that are newer than file;


Find/home-user User Name

Find all files that belong to your user name.


Find/-nouser

Find files in your system that don't belong to anyone


Find/-name file name

Find the file name of this file


Find/directory-type type

Find a file of a certain type under a directory


Find/-perm +7000

Represents a property that contains Sgid or suid or sbit in a lookup file

7000 means---s--s--t,+7000 indicates that only s or T is listed to

7000 indicates that you want to include---s--s--t three permissions to list


-exec Command:command for other commands,-exec followed by other commands to process the found file;


Find/-size +1000k

Find files larger than 1000k


Find/Directory-name ' * Part of file name * '

Find files in a directory that contain "certain characters" in filenames


This article is from the "end-of-the-guest" blog, please be sure to keep this source http://zheng2048.blog.51cto.com/10612048/1790631

command usage of the Linux 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.