How does linux command “find” and “mtime” really work?

In Unix-like and some other operating systems, find is a command-line utility that searches one or more directory trees of a file system, locates files based on some user-specified criteria and applies a user-specified action on each matched file.


find files modified greater than 24 hours ago


find files modified between now and 1 day ago (notice the missing “+” and “-“)


find files modified less than 1 day ago (this is the same as -mtime 0)


find files modified between 24 and 48 hours ago


find files modified more than 48 hours ago


Was this blog post helpful for you?

Support my blog and donate!

My blog is open to the public and will always be freely available. With your donation, we can help others learn, together.