Linux: List Recently Modified Files

If you are staring at a lot of files like logs, and trying to look at only stuff that’s changed lately, it can be helpful to filter them out first.  One such way is with the find command. Eg, to to list files modified in the last 24 hours:

 

find . -mtime -1 -print

 

The find command here uses the mtime option to list files modified in the las 24 hours.  The mtime parm is a 24 hour multipler.  Eg, to list files modified in the last 72 hours:

 

find . -mtime -3 -print

 

https://linux.die.net/man/1/find

Sharing is caring!

Leave a Comment

Your email address will not be published. Required fields are marked *


Notice: Undefined index: total_count_position in /var/www/wordpress/wp-content/plugins/social-pug/inc/functions-frontend.php on line 46
shares