Linux File Search Command

Source: Internet
Author: User

Locate

Command name:Locate

command location:/usr/bin/locate

Execute Permissions: All Users

Syntax: locate file name

function Description: find files in the file repository

Example :Locate Inittab

UpdateDB upgrade File repository

which

command name:Witch

command location:/usr/bin/which

Execute Permissions: All Users

syntax: which command

function Description: search for the directory and alias information for your command

Example :which LS

Whereis

command name:Whereis

command location:/usr/bin/whereis

Execute Permissions: All Users

syntax: whereis [ command name ]

function Description: search for the directory where the command is located and help document road strength

Example :whereis ls

Grep

command name:grep

command location:/bin/grep

Execute Permissions: All Users

syntax: grep–iv [ Specify string ] [ file ]

function Description: searches the file for string-matched rows and outputs

- i is case insensitive

-V excludes the specified string

Example :grep mysql/root/install.log


This article is from the "djh01" blog, make sure to keep this source http://djh01.blog.51cto.com/10177066/1686672

Linux File Search 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.