Locate allows users to quickly search the file system for specific files. The approach is to create a database that includes all the file names and paths in the system, and then simply query the database when looking, without actually going into the file system. In the general distribution, the establishment of the database is put into the crontab to execute automatically.
1. Command format:
Locate [Selec
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
Common Linux commands (17)-locate
Locate allows users to quickly search for specified files in the file system. The method is to first create a database that includes the names and paths of all files in the system. Then, you only need to query the database when searching, instead of going into the file system. In general distribution, database creation is automatically executed in crontab.
1.Command Format
file only in the directory you set-Ufind files that do not contain the specified typeWhereis example $ whereis mysql MySQL:/usr/bin/mysql/etc/mysql/usr/share/mysql/usr/share/man/man1/mysql.1.gzLocateThe locate command is used to find a file that matches a condition, and it goes to the database where the file and directory names are saved, to find a file or directory that matches the criteriaOption:-Uset up the database, starting with the root directo
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
1. Introduction to CommandsLocate (locate) command to locate a file or directory. The locate command is much faster than find-name because it does not search for a specific directory, but instead searches for a database/var/lib/mlocate/mlocate.db. This database contains all the local file information. The Linux system automatically creates this database and updat
}} In addition, when using the TagName method to locate, there is also a place to note that there are usually some HTML elements of the tagname is the same, as shown in (1).Figure (1)As we can see, the element labels for the radio box, check box, text box, and password box are input, and tagname cannot get exactly the element we want, we need to combine the type attribute to filter out the element we want. The sample code is as
Linxu command and file search-which, whereis, locate, find
Linxu command and file search-which, whereis, locate, findWhich 』)
[Root @ www ~] # Which [-a] command option or parameter:-a: List all commands that can be found in the PATH directory, not just the first command name that is found. Example 1: use the root account and the general account to search for the full file name of the ifconfig Command [root
Locate command
Function Description: locate allows users to quickly search for specified files in the file system. The method is to first create an index database that includes all file names and paths in the system, and then query the index database when searching, instead of going into the file system. Because Locate only searches the index database, it is much
3.locateLocate 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.3.1. Command format:Locate [Select parameters] [style]3.2. Command function:The
In the past few days, we installed centos6.3 to perform an lnmp test. today, when we opened the VM and used locate to find the file, the prompt-bash: locate: commandnotfound is displayed. then, let's start updatedb and prompt-bash: updatedb: commandnotfound thought about it. since it is a minimal installation, I can understand it without the locate command, so yu
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.1. Command format Locate [select parameters] [style] 2. Command functionThe locate
Compile errors on Mac with Xcode6, Visual Studio compiles under Windows no problem, and then view the error message:Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:Can ' t locate file forFile:-lpng isn't an object file (not allowed in a library)1Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate
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
F
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
F
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
F
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.