As a Chinese saying goes, “To do a good job, you must sharpen your tools.” There is only one Internet and N search engines. Some search experts say that the so-called search, “in the right place with the right tools and the right method to find the right content.”

However, for ordinary people, it seems impossible to master many search engines. It is much more desirable to achieve the vast majority of search purposes with one or two relatively robust and representative tools. In different periods, different strong people emerged.

Here are some common Google search techniques. Most of the tips below apply to other search engines as well.

Find information in a certain type of file – fileType

“Filetype:” is a very powerful search syntax developed by Google. In other words, Google can search not only regular text pages, but also certain binary documents.

Google can already retrieve Microsoft Office documents such as.xls,.ppt,.doc,.rtf, WordPerfect documents, Lotus 1-3 documents, Adobe.pdf documents, ShockWave. SWF documents (Flash animations), etc. The most useful document search is PDF search.

For example, to search the PDF version of Linux Command Line and Shell Scripting, enter:

Filetype: PDFCopy the code

As you can see from the results, the results listed above are PDF files.

Search results are not required to contain certain information

Google uses a minus sign “-” to indicate a logical “not” operation. A – B indicates the search for web pages that contain A but do not contain B.

If we don’t want to see a keyword in our search results, we can use the -keyword. For example, if you want to search for a common Mysql command, but do not want the CSDN to appear in the search result, you can use the following method:

The common Mysql command -csdnCopy the code

The search result must contain at least one of multiple keywords

Google uses a capital “OR” for logical “OR” operations. Search for “A OR B”, which means that A web page contains either A, B, OR both.

C OR C++ OR Python OR GoCopy the code

Search results must contain a certain keyword

You can use the + keyword when a keyword must be included in the search results. For example, if you want to search for common Mysql commands, you must include centos:

Mysql common commands +centosCopy the code

Restrict the search sites -site

If we just need to see the results of a particular website, we can use site: the site address. For example, I want to search for Mysql common commands.

But limited to the results in CSDN:www.csdn.net/, you can use the following…

Site: HTTPS://www.csdn.net/
Copy the code

The search keyword is included in the URL link – inURL

The “inURL” syntax returns the first keyword in the web page link, and subsequent keywords appear in the link or in the web page document.

For example, we need to search for links that contain “zhihu” OR “CSDN”

As you can see, only the relevant results in ZHIhu or CSDN are shown at the end.

Search keywords are included in the page title -intitle

The use of “intitle” and “allintitle” is similar to inURL and allinURL above, except that the latter queries the URL and the former queries the title bar of a web page.

The content we want to search may be title or content, but if we want to search only title content, we can use intile, for example:

Intitle :C++ Primer, fifth editionCopy the code

Unlike intitle, intext is used to search for content. Those who are interested can try it out for themselves.

Computational mathematical formula

If you need to do the calculation, you can directly enter the formula:

20*8+80- 90.
Copy the code

Search traversable directories -index of

Index of Web sites that allow directory browsing, for example:

conclusion

Search has become ubiquitous, and Google has become a necessary tool for both work and life.

Here are some practical tips to make better use of search engines and help you find the information you need quickly.

Of course, if you don’t want to remember these troublesome syntax, you can use the advanced search engine of each major search engine.

Reference: Google Search from Beginner to Master v4.0.pdf

PDF file, please add my wechat id (17865354792), reply: Google

Welcome to pay attention to the public number [program ape code], add my wechat account (17865354792), reply: get learning materials. Or reply: enter the technical exchange group. The web disk information is as follows: