11

I am running this command to find out the files which were modified in last 10 minutes

 find / -fstype local -mtime -10m

but it is giving following error each time

find: missing argument to `-mtime'

What is wrong with above?

Registered User
  • 1,463
  • 5
  • 18
  • 37

3 Answers3

11

It is -mmin like

find / -fstype local -mmin -10
nitins
  • 2,579
  • 15
  • 44
  • 68
3

Use mmin instead of mtime which is only for hours.

$ find / -fstype local -mmin -10
atx
  • 1,281
  • 1
  • 9
  • 26
2

Gnu find seems to want -mtime argument as days

File’s  data was last modified n*24 hours ago.

See -mmin

jkj
  • 592
  • 4
  • 12