Alex Rivera | Logout

How do I find all the files that were created today in Unix/Linux?

Asked 2009-04-29T06:21:21.960
96

How do I find all the files that were create only today and not in 24 hour period in unix/linux

Edit
Report

1 Answer

22

To find all files that are modified today only (since start of day only, i.e. 12 am), in current directory and its sub-directories:

touch -t `date +%m%d0000` /tmp/$$
find . -type f -newer /tmp/$$
rm /tmp/$$

Source

answered 2009-04-29T06:26:28.860

Your Answer