Find on the Linux lookup tool

Source: Internet
Author: User

Find is a very useful find tool in Linux. It can find the target file through the file path given by the user. Because it searches the entire file path in the search process to match all the target files, the search speed will be slightly slower, we can also based on the file name, size, type, dependencies and permissions and other criteria to find the exact target file. You can also delete or display details such as the found file.

syntax format for Find

Find [-h] [-l] [-p] [-D debugopts] [-olevel] [path ...] [Expression]

find files that begin with "network" in the file name under /etc:

.650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/78/1F/wKiom1Z2YrLCTJ67AAAqoV8r4XI477.png "title=" 1.png "alt=" Wkiom1z2yrlctj67aaaqov8r4xi477.png "/>

You can also look for it without distinguishing between the character casing:

.650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/78/1F/wKiom1Z2YsfhHTfUAAA2vVt4Wo0153.png "title=" 2.png "alt=" Wkiom1z2ysfhhtfuaaa2vvt4wo0153.png "/>

Let's look at the exact search based on the owner, group and file type: For example, if you find the main root of/etc subordinate , It is the directory file of LP and displays detailed information.

.650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/78/1F/wKiom1Z2YtfyfI8VAAAkWWqhgOg558.png "title=" 3.png "alt=" Wkiom1z2ytfyfi8vaaakwwqhgog558.png "/>

To find the genus non- root directory file with -not:

.650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/1F/wKiom1Z2YuvDPvzPAAAq5k7uF48655.png "title=" 4.png "alt=" Wkiom1z2yuvdpvzpaaaq5k7uf48655.png "/>

Search by file size (k,M,G) such as 1k;4 days of files visited:

~]# find/etc-mtime-4-a-size-1k–ls

use permissions to find files that do not have write permission for all users in the/etc directory

~]# Find/etc-not-perm/222-type F–ls

Well, if you have more information about please give me a lot of advice on how to use Find.


Find on the Linux lookup tool

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.