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?


It is -mmin like

find / -fstype local -mmin -10
|improve this answer|||||

Use mmin instead of mtime which is only for hours.

$ find / -fstype local -mmin -10
|improve this answer|||||

Gnu find seems to want -mtime argument as days

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

See -mmin

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.