Linux Command two: Find command

Source: Internet
Author: User

Find command:

Find Lookup command;

command format: Find (find file range) Parameters


Parameters:

No1:-name indicates the name of the lookup

Find/root-name "Mess"


No2:-print the Find results standard output for Find

Find/root-name "Mess"-print >list all/root files under mess output to list


NO3:-exec Executes the result of the find lookup to the given command

Find/root-name "Mess"-exec mv {} info \;


The NO4:-OK function is similar to exec, but alerts you to actions when you execute a command

Find/root-name "Info"-ok mv {} a \; You will be prompted to change your name when renaming


No5:-perm Follow the Find file

Find/root-perm 644 Find all files in/root with permission 644


No6:-size Lookup Unit is block by file size: 512 bytes (default) C: Bytes Cha

Find/root-size +1000000c to find files larger than 1M

Find/root-size-10 finding files that are less than 10 blocks

Find/root-size +10-size-20 Looking for a file between 10 blocks and 20 blocks


NO7:-type Search by file type

File Type: B: Block file (hard drive) C: String file (keyboard) d: Catalog P: Pipe file L: Connection file S: Interface file D:door (Solaris)

Find/root-type F-name "Mess"


NO8:-mtime Find files changed in a few days use,-expressed within a few days, + represents a few days away

Find/root-mtine +1-mtime-3


No9:-newer find files between two files in a time

Find/root-newer A! -newer-c search for a newer than a, older file than C

Where a file is set up early and C files are established late






This article is from the "Phoebe can be" blog, please be sure to keep this source http://nanmukeyi.blog.51cto.com/9672215/1697110

Linux Command two: Find command

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.