[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Shutting down the Qube



Jeff Lasman wrote:
> 
> > "locate" works on a compiled database of filenames, and so is quick and
> > neither CPU nor disk intensive.  "find" will actually search the disk
> > in real time.
> 
> We won't argue, but the find command only finds files named "shutdown"

<pantomime>
Oh yes we will!
</pantomime>

> file the locate command locates files with shutdown in the name.
> Depending on what you're looking for, that could result in a longer list
> to go through.

Yup, but I find I'm quicker at scanning that list than the machine is
at scanning the disk.

> I also prefer find because it tells me the status of the disk now, as
> opposed to what it was the last time the database was created.

Which is usually once a day - the vast majority of files are 
still in the same place.

-- 
Dom.