Atitit. Software gui button and panel --- OS zone ----- linuxwindows search file folder

Source: Internet
Author: User

Atitit. Software gui button and panel --- OS zone ----- linuxwindows search file folder

Atitit. Software gui buttons and panel --- OS zone ----- search for files

1. Find 1

2. Search for directory 1

3. 2. Locate // everything 1

4. 3. Whereis (windows Trojan ing method) 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 iron, EMAIL: 1466519819@qq.com

Reprinted please indicate Source: http://blog.csdn.net/attilax

2. Search for directories

Find/-name 'order * '-type d

3. 2. Locate // everything

The locate command is actually another method of writing "find-name", but it is much faster than the latter because it does not search for a specific directory, instead, search for a database (/var/lib/locatedb) that contains information about all local files. The Linux system automatically creates the database and updates the database once a day. Therefore, the latest changed files cannot be found using the locate command. To avoid this problem, you can use the updatedb command to manually update the database before using locate.

4. 3. Whereis (windows Trojan ing method)

The whereis command can only be used for searching program names, and only binary files (parameter-B), man description files (parameter-m), and source code files (parameter-s) can be searched ). If the parameter is omitted, all information is returned.

Examples of using the whereis command:

$ Whereis grep

5. 4. Which // everything + path

The which command searches for the location of a system command in the PATH specified by the PATH variable and returns the first search result. That is to say, by using the which command, you can see whether a system command exists and where the command is executed.

Use instance of the which command:

$ Which grep

6. 5. Type // everything

The type command is actually not a search command. It is used to identify whether a command is provided by shell or an independent binary file outside the shell. If a command is an external command, use the-p parameter to display the path of the command, which is equivalent to the which command.

Example of the type COMMAND:

Search for folders in linux-sprewell logs-wangyi blog .htm

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.