The Find command uses

Source: Internet
Author: User

5.find command Use

#find [path] [parameters] [action]

Time-related parameters: Atime ctime mtime

-NEWR file

Column: Look for etc below, if file date is newer than/etc/passwd list to

#find/etc-newr/etc/passwd



Parameters related to the user or user group

-The UID N: N is a file with a number UID

-gid N-N to a file with a digital gid

-user Name: The file to which the main name is owned.

-group Name: The file that belongs to the group name.

-nouser looking for files that are not in/etc/passwd

-nogroup looking for files that are not in/etc/group



Files related to file permissions and names

-name filename Lookup file named filename

-size [+ +] looking for larger, smaller files than size

-type type find file with file name type

-perm mode permission equals mode file

-perm-mode permissions must all include mode's file

+perm +mode permissions contain any file with the mode permission

Other

-exec command {} \;


This article is from the "Linux" blog, so be sure to keep this source http://1038457789.blog.51cto.com/10025869/1631331

The Find command uses

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.