find: finding files modified less than 10 minutes ago

1 view
Skip to first unread message

Copper Hill

unread,
Jun 25, 2009, 4:31:25 AM6/25/09
to worldhunter
http://content.hccfl.edu/pollock/Unix/FindCmd.htm

One of my favorite find criteria is to locate files modified less than
10 minutes ago. I use this right after using some system
administration tool, to learn which files got changed by that tool:

find / -mmin -10

Hong Zhaogang

unread,
Jul 1, 2009, 9:25:40 PM7/1/09
to worldhunter
find . -mmin -120 -type f

Find the files modified less than two hours ago under current
directory.

Hong Zhaogang

unread,
Jul 1, 2009, 10:13:51 PM7/1/09
to worldhunter
min find to see this:

Numeric arguments can be specified as

+n for greater than n,

-n for less than n,

n for exactly n.

-amin n
File was last accessed n minutes ago.

Hong Zhaogang

unread,
Jul 1, 2009, 10:20:15 PM7/1/09
to worldhunter
http://www.linuxforums.org/forum/misc/144127-find-command-ctime-vs-mtime-vs-creation-time.html

create a file using the touch command and assign the file the date
from which date you want to search a file.
now excecute 'find' cmd with newer option
ex: find <location> -newer <file created with touch>

this would list all files from the date specified with touch cmd.

Syantax : touch -t [[CC]YY]MMDDhhmm[.ss]
for example to give a file a date of 7/04/04
simple do this
#touch -t 20040407 filename.
Reply all
Reply to author
Forward
0 new messages