Bytes ------------------------------------------------------------------------------------------------------------------------[Technology] how to locate the code location that causes crashVerycd-fengwen sent to the verycd donkey Software Development Team (http://www.VeryCD.com/groups/Emuledev/), reprinted please indicate the sourceBytes --------------------------------------------------------------------------------------------------------------------
we often find a file in Linux, but we do not know where to put it, you can use some of the following commands to search.These are the information found on the Internet (reference 1), because sometimes it is not used for a long time, and when it is used, it is often confused, so it is easy to use.
which viewing the location of an executable file
Whereis Viewing the location of a file
Locate to view file locations with a database
Use LOCATE and case when... THEN... ELSE... END in mysql in combination,
In the previous project, you need to write an SQL statement to find out A survey details. Select answer A, Answer B, and answer C... f. The number of people in the answer is different. This SQL statement is written with great effort, so it is easy to use it later.
Here, tbl_research_item is the survey Details table, and tbl_user_research_item is the user's answer Details table.
S
We often search for a file or command in Linux, but do not know where it is stored. You can use the following commands to search.WhichWhereis view the file locationUse locate with the database to view the file locationFind actual search hard disk Query file name1. WhichSyntax: Which Executable File NameFor example:[Root @ RedHat ~] # Which passwd/Usr/bin/passwdWhich searches for executable files through the PATH environment variable, so the basic func
Tags: train of thought case sum sel div multiple selection Select otherwise aBefore the project needs to write a SQL, is to find out a research details, choose a answer, b answer, c answer ... f The answer to how many people each, this SQL is also a great effort to write, it is written down, convenient for later use. Among them Tbl_research_item is the research detail table, Tbl_user_research_item for user answer detail table SELECTItem.research_id,item.item_id,item.question,item.question_type,i
Locate allows users to quickly search the file system for specific files. The method is to set up a database that includes all the file names and paths within the system, and then simply query the database when looking for it, rather than actually going deep into the file system. In the general distribution, the establishment of the database is placed in the crontab automatic execution.1. Command format:Locate [Select parameters] [style]2. Command fun
Locate and find: find file commands in two Linux systems-general Linux technology-Linux technology and application information. The following is a detailed description. If you want to execute a file search task on the command line interface for the first time switching to Linux, you need to know the commands locate and find. Although both of these commands can be used to search for files, they have their ow
Linux: locate command-Linux general technology-Linux programming and kernel information. The following is a detailed description. In fact, I have long wanted to take a closer look at the usage of the query commands in linux, including whereis, which, find, locate, and grep.
Today we will talk about locate.
I thought that
Take the Baidu text box as an example:
Locate by ID: find_element_by_id ('kw ')
Locate by name: find_element_by_name ('wd ')
Locate by class: find_element_by_class_name ('s _ ipt ')
Locate by TAG: find_element_by_tag_name ('input ')
In practical applications, tags are rarely used to
Original: 53285624BrieflyLocate can quickly search the file system for a specific file. The method is to first establish an index database that includes all the file names and paths within the system, and when looking for it, simply query the index database without actually delving into the file system. Locate because it is only to retrieve the index database, it is much faster than the find overall retrieval.In the general distribution, the establish
under the manual path of the description file-S: Find source files only-u: File without document descriptionFor example:[Email protected] ~]# Whereis passwdpasswd:/usr/bin/passwd/etc/passwd/usr/share/man/man1/passwd.1.gz/usr/share/man/man5/passwd.5.gzFind the files associated with the passwd file[Email protected] ~]# whereis-b passwdpasswd:/usr/bin/passwd/etc/passwdOnly binary files are foundWhereis looks very fast compared to find, because the Linux system records all the files in the system i
In many cases, you need to use locate to locate the file. After finding the file, use the corresponding text editing tool, such as gvim, to open it.
At this time, the most annoying thing is to copy a long string of addresses.
If you can enable the integration of location and open operations, it is best to use pipelines for operations.
Two problems need to be solved when using pipelines: 1. Several files are
When you use the locate command, you may encounter the following situation:There is a file in the current directory, but this file cannot be found when using this command. I checked it online and found the cause, as shown below.
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
-
-
-
If no parameters are added, find searches for the current directory and Its
all normal files that have been updated in the last 10 minutes. If you do not add the-type f parameter, search for normal files + special files + directories.
2. Locate
The locate command is another way of writing "Find-name", but it is much faster than the latter because it does not search for a specific directory, but rather searches a database (/var/lib/locatedb), which contains all of the local file i
Locate allows users to quickly search the file system for specific files. The method is to set up a database that includes all the file names and paths within the system, and then simply query the database when looking for it, rather than actually going deep into the file system. In the general distribution, the establishment of the database is placed in the crontab automatic execution.1. Command format:Locate [Select parameters] [style]2. Command fun
Locate search fast and full command English intent
Locate something
Command format
Locate [选择参数][样式]
Command function
The locate command can quickly find the file when searching the database, the database is updated by the UpdateDB program, UpdateDB is created periodically by Cron D
Locate and find: two command for searching files: this command requires the database indexed in the background as the support when running. in Ubuntu, this database file is located in varcachelocatelocatedb. In general, this database file is automatically updated by cron every day through the locate and find: two search file commands locate: this command requires
How does SQLSERVER locate the target data through indexing and Statistics (article 2) before reading the content of this article, please read the content of the first article first, without the foundation of the first article, we will see the first article of o (_) o address: How does SQLSERVER locate the target data through indexing and Statistics (Article 1 )---------------
How does SQLSERVER
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 found on the Internet, because they are sometimes not used for a long time. They are often mixed up when used, so they are easy to use here.WhichWhereis view the file locationView the
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.