TIL: Linux’s locate

T

Among all Linux’s command, I happen to use locate a lot, reason is because simply I forgot the file’s location all the time.

Today I learned that some distro doesn’t come with locate by default, so this is what you do

Simply install it by

Remember, that is mlocate not locate, weird, I don’t know why.

Then, normally locate database would not ready to use, you would have to build it by command

Voila, after few minute of indexing your system, depend how big and how fast it is, your locate command is ready to use.

Add comment

By namke

Your sidebar area is currently empty. Hurry up and add some widgets.

en_USEnglish
en_USEnglish