DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

Find UNIX files modified within a number of days

Started by qdideas · 9 months ago

To find all files modified within the last 5 days:
find / -mtime -5 -print
The - in front of the 5 modifies the meaning of the time as “less than five days.” The command
find / -mtime +5 -print
displays files modified more than five days ago. Without ... Continue reading »

2 comments

  • Rather, that command finds files modified exactly 5 days ago.

    --Mark
  • You are exactly right. Thanks for catching this error and pointing it out. I've corrected the recipe to include the less than and more than modifiers of the day count.

    Quinn

Add New Comment

Returning? Login