LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Find files on Linux with the command locate (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-find-files-on-linux-with-the-command-locate-4175416512/)

LXer 07-13-2012 08:30 AM

LXer: Find files on Linux with the command locate
 
Published at LXer:

I just realized that I’ve never wrote anything about one of my favorite commands on the Linux shell: locate.This command take as input the name (or part of it) and instantly it gives you all the locations where that file is located, an alternative to this could be to use the command find, but there is an huge difference in the time that takes find to search large file systems in comparison to a locate, this difference is given from the fact that locate uses his own database where it stores all the file names, while find scan the directory and looks for the file name you have given as input.

Read More...


All times are GMT -5. The time now is 12:52 PM.