Atitit. Software guibuttonand Panel---OS zone-----linux Windows Search Files directory

Source: Internet
Author: User

Atitit. Software GUI Button and Panel ---OS Area ----- Search for Files

1. Find 1

2. Find a Folder 1

3.2. locate//everything 1

4.3. Whereis ( method of this mapping for Windows Horses ) 2

5.4. which//Everything+path 2

6.5. type///Everything 2

1. Find

Find/-name ' 2615806806b47d00dabc4571f1be3315.jpg '

/images_all/zonghe_kuvarsit/kuvarsit/image_medium/2615806806b47d00dabc4571f1be3315.jpg

/images_all/watches_kuvarsit/image_medium/2615806806b47d00dabc4571f1be3315.jpg

Find/-name ' order* '

Author:: Old Wow's paw attilax Ayron, email:[email protected]

Reprint please indicate source: Http://blog.csdn.net/attilax

2. Find a Folder

Find/-name ' order* '-type D

3.2. locate//everything

The Locate command is actually "Find-name" and there is a way to do it. But it is much faster than the latter because it does not search the detailed folder, but instead searches for a database (/var/lib/locatedb). This database contains all the local file information.

Linux The system proactively creates the database itself. And you update yourself every day, so use the locate command to not find the latest changed files. In order to avoid such a situation. You can manually update the database by using the UpdateDB command before using locate .

4.3. Whereis (WindowsThe method of the mapping of horses)

the Whereis command can only be used for search of the program name, and only the binary file (parameter - b), the man description file (parameter - m ) and source files (parameter- s). If you omit a parameter, all information is returned.

examples of use of the Whereis command:

$ whereis grep

5.4. which//Everything+path

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 returns the first search result. That is, by using the which command, you can see whether a system command exists, and which command is where it is running.

examples of use of the which command:

$ which grep

6.5. type///everything

The type command does not actually count as a lookup command, it is used to distinguish whether a command is brought by the shell or by a standalone binary file outside the shell. If a command is an external command, then use the - p parameter. The path to the command is displayed. Equivalent to the which command.

use instances of the type command:

find directory in Linux -Sprewell log - netease blog . htm

Atitit. Software guibuttonand Panel---OS zone-----linux Windows Search Files directory

Related Article

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.