[NTLUG:Discuss] Finding files

Leroy Tennison leroy_tennison at prodigy.net
Thu May 15 00:22:26 CDT 2008


If I have to return to CentOS 4.6 from 5.1 because I can't resolve 
issues I need to make sure that I get all modified files that I want 
copied back.  Finding all the files is proving to be a challenge.

Searching in Konqueror for all files created or modified in the last 10 
days gave a listing of a bunch of directories and 15 files.  Using the 
variations of find below produced approximate 100 times that many hits

Using the following (su-ed to root and cd-ed to /) missed (at least) two 
filenames containing spaces and .lesskey in my home directory.

find . -daystart -type f -mtime 10
find . -daystart -mtime 10
find . -name '*' -daystart -mtime 10
find . -name '*' -type f -daystart -mtime 10

What do I have to do to find all files modified in the last 10 days? 
All three files that I know were missed were modified less than five 
days ago.



More information about the Discuss mailing list