Results 1 to 8 of 8

Thread: Linux find command

  1. #1
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Linux find command

    I've always been a bit unsure about this just being 'me' or not. But it seems like half the time I try to find on a linux box, it just sort of dies. With Windows it will always (eventually) get to the end of its search, but I've had a linux find search going for about 10 minutes now (granted it is over ssh and using a wildcard, but that shouldn't change too much on the actual search at all, right?). The 'top' command suggests it is actually doing stuff as well.

    Has anyone else ever had this? (it's on an ext3 partition)

  2. #2
    Senior Member burble's Avatar
    Join Date
    May 2007
    Location
    Olney
    Posts
    1,138
    Thanks
    8
    Thanked
    90 times in 89 posts

    Re: Linux find command

    The time it takes will depend massively on the path you're searching in (find / -name is a killer) and the amount of files within that path.

    I don't remember having a search take 10 minutes though.

  3. #3
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Re: Linux find command

    Cheers Burble,

    I guess there are quite alot of files (as its a backup of our shared data directory) but it's not searching the whole system

    find /remote-backup/ -name '*woop.sxw'

    it's still going as well. (edit: and just to clarify, remote-backup is a local folder, not a network mounted one)

  4. #4
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: Linux find command

    some filesystems are slower than others, some searches are slower than others

    a handy function is "locate", which behaves much like find but uses a cached list of all the files on the system. "updatedb" updates its list, and is often in an overnight cron job

  5. Received thanks from:

    Raz316 (08-11-2007)

  6. #5
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Re: Linux find command

    aha thank you! I'll give it a go

  7. #6
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: Linux find command

    One of the strengths (and irritations!) of Linux - so many ways of doing things - some better than others in diifferent situations. I have only just started using the locate function (after 3 years) It is just so much faster! (But at the risk of missing new stuff if the database hasn't updated)
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  8. #7
    Member
    Join Date
    May 2007
    Posts
    173
    Thanks
    0
    Thanked
    1 time in 1 post

    Re: Linux find command

    whereis is also quite useful

  9. #8
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Re: Linux find command

    perfik, it appears the slocate database is built through cron.daily

    thank you all

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. *big gulp* - I want to try linux again
    By Dreaming in forum Software
    Replies: 29
    Last Post: 13-12-2007, 02:39 AM
  2. Decent linux Book?
    By Aeria in forum Software
    Replies: 21
    Last Post: 13-09-2007, 09:09 AM
  3. Linux Resources thread
    By ikonia in forum Software
    Replies: 1
    Last Post: 19-10-2006, 08:45 AM
  4. Linux Gaming
    By Steve in forum HEXUS Reviews
    Replies: 31
    Last Post: 28-05-2006, 10:15 PM
  5. Run Windows software on Linspire desktop Linux
    By Bob Crabtree in forum HEXUS News
    Replies: 0
    Last Post: 09-02-2006, 01:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •