Search code examples
bashshellls

ls command and age of files


I'm observing a directory with several log files. What I'm interested in, are files which have changed in say last 10 mins.

Is it possible to list all files in a directory older than n-minutes with a simple command?


Solution

  • What you're looking for is called find

    find . -mmin +10
    

    should do it. See man find for more options.