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
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
Tags: target records linux environment configuration archive handle free problem resolution should bin ObjectiveTake over predecessors of the project, no contact, installation, use of Perl and dbd::oracle, there is no relevant documentation, blankly at a loss ~ ~. At the beginning of the problem, thinking about the rapid resolution, directly on Google search error messages, the process of searching found that if not clear the cause and the cause I can't even see the solution "do not understand."
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
) Object:nil];Thread.Name = @ "Thread A"; Thread[Thread start];Puts a thread into a scheduled thread pool, in a ready state, waiting to be called by the CupHidden threads[Self Performselectorinbackground: @selector (longtimeoperation) Withobject:nil];How to create an implicit method[Self Performselectorinbackground: @selector (run2:) withobject:@ "DF"];Class method[Nsthread detachnewthreadselector: @selector (run2:) totarget:self withobject:@ "Hello"]Object
Nowadays, many blogger prefer to embed a small Google map in their blog to mark their location. Such a simple function can increase the color of your blog and attract more visitors. By studying the previous chapter, I believe that readers can make Google maps by themselves. This chapter will not describe this too much, but will introduce how to locate a visitor on a map and record the visitor's regional source.Understand Microsoft's IP address locatin
This problem is a mistake when I develop a heartbeat server. In fact, the error is very simple. I want to write an article to tell you that the warning during compilation is very important! Due to the large amount of project code and a large amount of information during the compilation period, I neglected a warning message during the compilation period while busy debugging. In fact, this warning is really convenient to solve the problem, I ignored it and it took more time to
Baidu map android sdk3.5 allows you to locate and jump to the specified coordinates and add tags
A few days ago, I downloaded the new Baidu map sdk, version 3.5, and found that the Baidu map api has changed significantly.
Similar to version 3.0
However, setting the map center and adding the maker tag have greatly changed.
Set map center point
// Define the map state zoom to indicate the zoom Level 3-18MapStatus mMapStatus = new MapStatus.Builder().ta
A few days ago, I saw someone asking me how to find the table referenced by a view, or if a table was referenced by those objects, I did not pay attention to it. Today, my friend asked me.I think there is a view to express this dependency, So I open DBA studio, enter solution --- view --- sys, and then quickly browse the view like DBA, judging from experience that many views are not needed, we finally see a view: dba_dependencies, which is not a good choice in English. I guess it may be.
SQL> DE
Use bookmarks to locate the specified location of a Word document (three methods)First, set and name the bookmarks in the Word documents. (assume that a bookmark named "bm_test" is created)
Then use C # To operate the word
Using MSWord = Microsoft. Office. InterOP. word;
Private MSWord. Application wordapp; // word ApplicationProgramVariablePrivate MSWord. Document worddoc; // Word document variablePrivate o
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
Both the locate command and the Slocate command are used to locate files or directories.Locate is different from find: find is to go to the hard drive, locate only in/var/lib/slocate database. This database contains all the local file information. The Linux system automatically creates this database and updates it automatically once a day, so you can't find the l
1. Command format:Locate [Select parameters] [style]2. 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 Daemon , and the locate command searches the database faster than the entire data from the hard disk. , but the worse is locate fo
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.