located and the Help document path, where the path is/usr/bin/whereis, in the syntax format:Whereis [command name]To find the command information for LS:[Email protected] ~]# Whereis Lsls:/bin/ls/usr/share/man/man1/ls.1.gz/usr/share/man/man1p/ls.1p.gz(5) grepThe grep command is used to search the file for string-matched rows and outputs, where the path is/bin/grep, with the syntax in the following format:Grep–iv [Specify string] [file]Where the-I opt
update before the line "use the UpdateDB command to update the database, UpdateDB will go to read/etc/ updatedb.conf settings, and then go to the hard drive to find the name of the action, and then update the entire database file, because updatedb back to search the hard disk, so very slow, when executed, to wait a few minutes ") UpdateDB: According to the/etc/updatedb.conf set to search the system's ha
For commands related to Linux File Search, see table 2-7.
Table 2-7 commands for searching files in Linux
Command
Brief Chinese description
Program directory
More
Display a file or any output results by PAGE
/Bin
Less
A file is displayed on multiple pages and can be returned.
/Usr/bin
Whereis
Searching for
Advanced search commands
1. Double quotation marks (""): indicates a full match.
2. minus sign (-): indicates that the search page does not contain the word after the minus sign.
3. asterisk (*): It is a wildcard, but Baidu does not support the * SEARCH Command.
4. inurl: The page used to
1. source code file search
You can use the following three commands to find the source file for GDB debugging.
Forward-searchRegexp
Search for the keyword Regexp from the first line of the source file and record the row number. This record can be referenced by the next GDB command.
Example: for void
Search Result: 3
-specific commands to find files or directories, preferably for quick location system Commands , configuration files , etc. # Although the search is fast, but sometimes it can't be found#locate is found in the file database, so the speed will be fast# But if the database does not contain this file, he will not find it;Format: Locate [
Common Linux commands-file search command find
Command name: findCommand path:/bin/findSyntax: find [search range] [matching condition]Function Description: file search
ExampleFind/etc-name initFind the file init In the/etc directory-Iname is case insensitive.* Represents a wildcard? Represents a character
Find/-siz
/WhereisExecute Permissions: All UsersFunction Description: Search for the command directory and help document pathSyntax:whereis [command name]Example: $ whereisls----------------------------------------------------------------------------------File Search command: grepCommand name: grepCommand location:/bin/grepExecute Permissions: All UsersFunction Description: Searches the file for string matching lines
use of the Whereis command:#whereis vim 5.typeThe type command 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 using the-p parameter displays the path to the command, which is equivalent to the which command. #type CDThe system will prompt that the CD is the Shell's own command (build-in). #type grepThe system prompts that grep is an external command and displays the path to the
Transferred from: http://jingyan.baidu.com/article/6d704a13f6bf1b28da51ca69.html
Ubuntu is using Apt-get to install software, we first open the terminal to see Apt-get common commandsInput:sudo apt-getYou can see a lot of commands, and there's nothing like a command to find a package
Wouldn't it be impossible to install the detailed name of the package if you didn't know it? In a skeptical attitude, to
Recently, I am studying Linux. Below are some notes.
When using a computer, you often need to find files.
In Linux, there are many ways to do this. The foreign website LinuxHaxor summarizes Five Commands. You can check several of them. Most programmers may often use two to three of them. There should be not many people familiar with these five commands.
1. find
Find is the most common and powerful
\} ' *.txtTest.txt:hnlinuxTest.txt:peida.cnblogs.comTest.txt:linuxmint[Email protected] test]#Example 14: Log file too large, not good to see, we want to see what we want, or get the same kind of data, such as no 404 log InformationCommand:grep '. ' Access1.log|grep-ev ' 404 ' > Access2.loggrep '. ' Access1.log|grep-ev ' (404|/photo/|/css/) ' > Access2.loggrep '. ' Access1.log|grep-e ' 404 ' > Access2.logOutput:[[email protected] test]# grep "." Access1.log|grep-ev "404" > Access2.logNote: The a
which commandWhich is used to find system commands, such as LS, cat, etc., which are searched from the folder specified by the path variable, and when the specified folder has a binary file with the same name as the command, the path to the file is given, that is, the path to the command.However, it seems that it must be a binary file, I tried to add a file in/usr/bin, and then which did not search it out:m
Linux search and compression command 1. which search for commands, such as: jerry @ why:/$ which ls/bin/lsjerry @ why: /$ www.2cto.com 2. whereis is similar to which, a little more than which. It will show where the command help is: jerry @ why:/$ whereis lsls: /bin/ls/usr/share/man/man1/ls.1.gzjerry @ why:/$3. Find all the files in the folder in locate, which is
filter your search results. The content may include pornographic, violent, gambling, and infected webpages. However, it does not guarantee security. For example, [SafeSearch: breasts].
Site: When we use site to submit a query, Google will restrict the query to be performed only on a website or under a domain. For example, [admissions site: www. LSE. ac. uk]. If you submit this query, only the admissions information under the website www. LSE. ac. u
Basic Search commands and viewing information in Linux
Searching for commands and hardware information is the most common operation for daily system management and maintenance. Next we will make a brief comparison of the Basic Search commands in Linux and list some common ha
Whereis
Command path
/usr/bin/whereis
Execute permissions
All Users
Grammar
Whereis [command name]
(2) Application examples:① View ls command directory and help document path : #whereis ls3.5 searches for a string-matched line in the file and outputs: grep(1) grep command
Command name
grep (English literal:global Regular expression print)
Command path
/bin/grep
Exe
Frequently Used search commands ------ whereis, which, locate, find, findwhereislocate
From: http://312788172.iteye.com/blog/730280
We often search for a file in linux, but do not know where it is stored. You can use the following commands to search. These materials are foun
Five Linux file search commands: find, locate, whereis, which, type
Find: find the path of the file or directory
Format: find [path] [expression]
Expression:
-Name: Find the file named filename
-Perm: search by execution permission
-Empty: searches for empty files or directories.
-User: search by file owner
-Gr
Transferred from: http://jingyan.baidu.com/article/6d704a13f6bf1b28da51ca69.html
Ubuntu Apt-get is used for software installation, we first open the terminal to see Apt-get common commands Input: sudo apt-get You can see a lot of commands, And there seems to be no command to find the package
so if you do not know the details of the package is not able to install the name? I
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.