What is the difference between locate and slocate
You can find everything. You can find files according to conditions and find them on the hard disk. The efficiency is very low. Decryption can be completed without directly passing the key. This can ensure the security of information and avoid the risk of cracking caused by direct key transmission. It is the process of encryption and decryption by a pair of keys, which are called public key […].
Tags: find , locate , whereis , Which? RSA encryption principle. File names in Linux are — sometimes infuriatingly so users who are new to Unix — case sensitive. Trying to remember if a file name is whereami, WhereamI, or WhereAmI before searching for it can add frustration to the task. Tell locate that you are an insensitive lout who is totally case insensitive by adding the -i option to the search, like this:.
Since updatedb normally runs just once a day, sometimes you need to find a file that has been created since the last update. It may take several minutes to complete, or even longer if you have a large number of files to be accounted for.
To find out how large your database is, enter the locate -S , like this:. Having to run the database update program before doing a search in order to have access to the latest files on your system is far from being an elegant solution. If that describes you, then you might want to check out a new project called rlocate by Rasto Levrinc.
It functions as a kernel module which maintain a daily database containing the files and directories created since the last time updatedb was run.
They implement the same basic functionality: quick lookup of file names based on an index that's typically rebuilt every night. They differ in some of their functionality beyond basic usage. In particular, GNU locate builds an index of world-readable files only unless you run it from your account , whereas mlocate builds an index of all files but only lets the calling user see files that it could access. This makes mlocate more useful in most circumstances, but unusable in some unusual installations where it isn't run by the system administrator because mlocate has to be setuid root , and a security risk.
Under Debian and derivatives, if you install both, locate will run the mlocate implementation, and you need to run locate. This is managed through alternatives.
0コメント