Locate command?

fvsfvs
edited May 2006 in Science & Tech
I just came over form Mac OS X and in my terminal I ran the cron manualy with this command, periodic daily weekly monthly, Because I don't leave my box on all the time, My question is what command in linux terminal will do the same? I can't seem to get the locate command to work in linux terminal, I was told that it updates through the periodic command.in Mac, dose it also need to update in linux? I used updatedb command and no dice.

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited May 2006
    fvs wrote:
    I just came over form Mac OS X and in my terminal I ran the cron manualy with this command, periodic daily weekly monthly, Because I don't leave my box on all the time, My question is what command in linux terminal will do the same? I can't seem to get the locate command to work in linux terminal, I was told that it updates through the periodic command.in Mac, dose it also need to update in linux? I used updatedb command and no dice.


    1) you need to be root to run updatedb
    2) locate works fine for me. You can also try slocate
  • EnverexEnverex Worcester, UK Icrontian
    edited May 2006
    I'm confused, why/how would you be using "locate" to run Cron?
  • shwaipshwaip bluffin' with my muffin Icrontian
    edited May 2006
    I think he might be talking about having cron run updatedb, but otherwise, I have no idea.
  • drasnordrasnor Starship Operator Hawthorne, CA Icrontian
    edited May 2006
    I use slocate. On Gentoo it has an initscript that handles changes in the location database. Presumably this initscript is included on other distros as well.

    -drasnor :fold:
Sign In or Register to comment.