Find Recent Files

September 10, 2025 Β· Tyler Yeager

Find Recent Files
find_recent_files() { find -type f -mmin -${1:-5}; }

This relies on find’s -mmin argument

-mmin n
File's data was last modified less than, more than or exactly n minutes ago.

The ${a:-5} means it’ll default to 5 (minutes), but you can choose anything you’d like.

To run, you can just do this:

Terminal window
find_recent_files

To install this to use yourself, you can place it in your shells config file.

  • ~/.bashrc
  • ~/.zshrc

Did you find this interesting?

Consider subscribing 😊

No AI-generated content or SEO garbage.

Unsubscribe anytime