Skip to main content

Pass the -mtime n option to find command to get file’s data was last modified n*24 hours ago, so:

## List files uploaded in last 3 days directly using find command ###
## GNU/Linux specific example ##
find . -iname "*.jpg" -type f -mtime -3 -ls

OR try the following bsd/unix specific example:

## list jpg files uploaded in last 3 days directly using find command ###
find . -iname "*.jpg" -type f -mtime -3 -print0 | xargs -I {} -0 ls -l "{}"

## list all files uploaded in last 3 days directly using find command ###
find . -mtime -3 -print0 | xargs -I {} -0 ls -l "{}"