Linux Base Operation Lookup command

Source: Internet
Author: User

2018-01-26

Command: Whereis (find the fastest one, but only binary programs, documents, and source code can be found.)

Command format: whereis [options]

-B Find 2 binary programs

-M Find Documents

-S Find source

Command: which (advantage: One of the fastest commands in the Find tool can show the user the path to which the command is located.) Cons: Limited search scope)

Command format: which file name

Command: Find (strongest find tool, common)

Command format: Find path expression (expression to-, ()! The beginning before this is considered to be a path expression that can contain a wildcard character *? [] etc.)

      -name Find a file for a name

Example: Find/etc-name passwd

-type Finding file type files of the specified type

| Connection

Catalog D

B-Block Equipment

s socket

P Piping (pipe)

F Regular Files

Example:

Find/-type l-print Find/-type D-print

-size N [C]

Find files of n-value size, default unit is block (1 block = 512 bytes)

Example:

Find files larger than the bytes #find ~-size +1500c

Find files that are equal to 1500k bytes #find ~-size 1500k

Find files less than ten blocks #find ~-size-10

Example of finding files/directories with byte 0 (i.e., empty pieces): #find/-empty

Find all files belonging to snow users

#find/-user Snow

Find files that belong to the snow group

#find/-group Snow

Find files that are not group and are not owned by the owner

#find/-nouser-nogroup

Linux Base Operation Lookup 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.