Linux Getting started the next day-Getting started with basic commands (middle)

Source: Internet
Author: User

Tagged with: variable font linu ALT logs img Wildcard supplement es2017

One, the file Search command

1. File Search command: Locate

Fast (see Comparison of Linux tool URLs), note that new files cannot be found (the principle is not expanded)

The rules of handsome election:

  Instance:

2. Command Search command: Whereis which

 Instance:

  

  Instance:

  The purpose of the which command is to search for the location of a system command in the path specified by the path variable, and return the first search result.

"Supplemental Knowledge":

  3. File Search command: Find

 Instance:

  Wildcard characters:

Search instance:

  Other common parameters:

(Kbytes lowercase k, MBytes uppercase M)

Execute (EXEC) by placing the result of the preceding command in the second command {}

  4. String Search command: grep

  Instance:

  Compare to find:

Linux Getting started the next day-Getting started with basic commands (middle)

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.