Linux Foundation-----Find basic Application

Source: Internet
Author: User

Find find path lookup standard processing action

Find path: Default to Current path

Find Standard: Default find all Files under directory

Handling actions: Default display to standard output

Find criteria:

-name "file name": Search by file name

Wildcard characters supported

-user user name: Based on owner Lookup

-group Group name: Search by Genus Group

-uid UID: According to UID

-gid GID: According to GID

-nouser: Finding files that are not owned by the master

-nogroup: Finding files that are not owned by a group

Combination conditions

-A: With the default is the

-O: Or

-!: Non-

File type-type {f,d,b ...}

F: Normal file

D: Catalogue

B: Block device

-size based on file size

Find/var/log-size +10k-ls to find files larger than 10k

+2m files larger than 2M

K: Lowercase k:kb

M: M:MB in Uppercase

G: G:GB in Uppercase

Time

-atime

-mtime

-ctime

-3: The current time, 3 days (forward 72 hours) of the file

+ 3: Files that are not accessed for at least 3 days (72 hours) from the current time

such as: Need to find a file 7 days ago, the current time is August 19 3 o'clock in the morning

+ 6: August 13 hours before 3 of the documents are more than 7 days, to 20th, 3 o'clock in the morning, 14th, before 3 o'clock in the morning files are also belong to 7 days ago documents

Permissions

-perm

-perm-644

Handling actions

-ls: Show details of found files

-exec command {} \;


This article is from the "Hanging Sword" blog, please be sure to keep this source http://sublime.blog.51cto.com/8856101/1545063

Linux Foundation-----Find basic Application

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.