Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 5 down vote accepted

It is -mmin like

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

Use mmin instead of mtime which is only for hours.

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

Gnu find seems to want -mtime argument as days

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

See -mmin

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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