Liam Delahunty: Home Tips Web Contact
Recommended laptop
under £500
.

Think I deserve a present? See my Amazon Wish List

Linux - Find files edited today

find . -mtime -1 \! -type d -exec ls -l {} \;

Find all files in this directory (.) modified in the last day (-mtime -1) that aren't directories (\! -type d) and execute the list function on them ls -l

That would produce (on this directory at the time of writing):

[root tips]# find . -mtime -1 \! -type d -exec ls -l {} \;
-rw-r--r-- 1 root site13 820 Jan 20 12:23 ./linux_find_files_edited_today.php

Share this!  



Linux Find Exclude Multiple Directories | Linux Find Files Edited Today | Linux Find Prune And Ignore Directories


 

  Tips | Home | Search | Contact

Link here: