A description of the Find command for Linux basic commands

Source: Internet
Author: User

Examples of find common usages in Linux

Find Path-option [-print] [-exec-ok command] {} \;

Parameters for the Find command

The directory path that the Path:find command looks for, for example, to represent the current directory, and/to represent the system root directory.

The-print:find command outputs the matched file to the standard output

The-exec:find command executes the matching file with the shell command given by the parameter, in the form of ' command ' {} \; note {} \; there are spaces between

-ok and-exec are the same, except that the shell command given by this parameter is executed in a more secure mode, and a prompt is given before each command to allow the user to confirm the execution

-name filename Lookup by file name

-perm to find by permissions

-user username Search by user name

-group groupname to find by group

-mtime-n +n by file modification time to find, n n days, +n n days ago

-atime-n +n by file access time to find, n n days, +n n days ago

-ctime-n +n by file creation time, n n days, +n n days ago

-nogroup

-nouser

-newer F1!F2

-type/b/d/c/l/f

-size N[c]

-depth

-fstype

-cpio


A description of the Find command for Linux basic commands

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.