finding things in unix
Bill Campbell
bill at celestial.com
Sat Apr 24 11:43:18 PDT 2010
On Fri, Apr 23, 2010, Fairlight wrote:
>I don't know why nobody's suggested installing slocate, having updatedb run
>nightly, and using: locate filename
There are issues with this, the most serious is that it can
reveal obfuscated file names in directories that are not
searchable allowing people to access files they shouldn't.
Other than that, there is the factor that the locate command
won't show anything created since the last update, usually daily,
but sometimes less frequently.
That said, locate is something we put on most machines we
support.
Another handy use of find is to figure out what files are
modified by GUI system maintenance routines. Doing something
like this will allow one to see what files change:
touch /tmp/copyctrl
do some GUI maintenance
find /etc -type f -newer /tmp/copyctrl
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792
bad economics will sink any economy no matter how much they believe this
time things are different. They aren't. -- Arthur Laffer
More information about the Filepro-list
mailing list