Find files that have been modified on your system in the past 60 minutes

sudo find / -mmin 60 -type f
Useful mainly for debugging or troubleshooting an application or system, such as X11, Apache, Bind, DHCP and others. Another useful switch that can be combined with -mmin, -mtime and so forth is -daystart. For example, to find files that were modified in the /etc directory only yesterday: sudo find /etc -daystart -mtime 1 -type f

34
By: atoponce
2009-03-01 23:03:31

1 Alternatives + Submit Alt

  • Provides a recursive time ordered list of the current directory over the last 3 minutes. Excluding zero byte files: ls -lF -darth `find . -size +0 -mmin -3` For the last day's files, change "-mmin -3" to "-mtime -1": ls -lF -darth `find . -size +0 -mtime -1` Show Sample Output


    -2
    ls -lF -darth `find . -mmin -3`
    UncleLouie · 2014-03-22 16:52:20 0

What Others Think

That command finds files that were modified exactly 60 minutes ago. If you want to find the ones that were modified within the last 60 minutes, use a dash before the number: sudo find / -mmin -60 -type f
dennisw · 458 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: