Linux View commands

Source: Internet
Author: User

Text lookup: grep egrep fgrep

File Search: Locate

Non-real-time, fuzzy matching, lookup is based on the system-wide file database

Fast speed


Find

Realtime

Accurate

Support for many search criteria

Traverse all files in the specified directory to complete lookup, slow

Find Find Path Lookup criteria finds a later processing action

Find path: Default to current directory

Lookup criteria: Default to all files under the specified path

Handling actions: Default to show

Matching Criteria:

1.-name ' filename ': Search by file name

Support File name wildcard

-iname ' filename ': file name matching is case insensitive

2.-user Username: Based on owner Lookup

-group groupname: Search by genus Group

-uid UID: Search by UID

-gid GID: Search by GID

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

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

3.-type

F: Normal file

D

B

L

P

S

4.-size: Search by File size

NK: Precisely NK

[+|-] NK: Greater than or less than NK

NM:

NG:

5. Group number conditions:

-A: With

-O: Or

-not: Non-

6. Search by Time

-mtime: The time of the change

-ctime: Time of Creation

-atime: Time to visit

7.-perm: Search by permissions

Action:

-printe: Display

-ls: Displays the details of each file in a form similar to Ls-l

-ok command {} \; Each step requires confirmation

-exec command {} \; no confirmation required


This article is from the "ngames" blog, make sure to keep this source http://ngames.blog.51cto.com/3187187/1545938

Linux View 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.