FIND too slow with large number of files

Discussion in 'Site & Server Administration' started by deriklogov, Oct 22, 2009.

  1. #1
    Hey,

    I am running FIND to find some directories , but its working very slow because of the millions of small files.
    How to run FIND telling it to find only directories and bypass files ?
    like FIND -type d still very slow
     
    deriklogov, Oct 22, 2009 IP
  2. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #2
    Try "locate" command.
     
    RectangleMan, Oct 22, 2009 IP
  3. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #3
    thanks for reply

    the thing is I am using find ...... -exec cp
    does locate can do that ?
     
    deriklogov, Oct 22, 2009 IP
  4. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #4
    locate will work for sure.
     
    rootbinbash, Oct 28, 2009 IP