Linux under the Whereis command and find command a bit similar, Whereis command lookup faster, but can only find the program name, with the following small series to understand the specific use of the Whereis command.
The Whereis command searches
The Whereis command can only be used for program name searches, and only binary files (parameter-B), man description file (parameter-m), and source code file (parameter-s) are searched. If the argument is omitted, all information is returned.Whereis
Linux study notes -- whereis command (SEARCH Command)
Where whereis is used to search for the command and help document.
Whereis command features:
1) The "whereis" command can only search for system commands, but cannot search for common files. 2)
FindFind is a very effective tool that can traverse the current directory and even the entire file system to find certain files or directories.Main option:-namefind files by file name-permfollow file permissions to find files-prunedoes not find in
It programmer development must-all kinds of resources download list, the most complete IT resources in history, personal collection summary.
FindFind is a very effective tool that traverses the current directory and even the entire file system to
Translated from http://www.cnblogs.com/wanqieddy/archive/2011/07/15/2107071.html1 , grepgrep (general Regular expression Parser, universal regular expression parser) is a powerful text-search tool that can use regular expressions to search for text
1. grepgrep (general Regular expression Parser, universal regular expression parser) is a powerful text-search tool that can use regular expressions to search for text and print matching lines.The syntax for using it is:grep [option] pattern
1,Grep
Grep (General regular expression parser, universal rule Expression Analysis Program) is a powerful text search tool that can use regular expressions to search text and print matching rows.
Its syntax is as follows:
Grep [Option] Pattern [File
Transferred from:
Http://www.kuqin.com/linux/20091009/70532.html
1. Find
Find is the most common and powerful search command. You can use it to find any file you want.
The format of find is as follows:
$ Find
-: the directory to be searched
Http://hohoqi.blog.163.com/blog/static/10795561201091011199438/
FindFind is a very effective tool that can traverse the current directory or even the entire file system to find some files or directories. Main options:-name
Search for files by file
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.