Linux – How to find all the files that were created today in Unix/Linux

linuxunix

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

Best Solution

On my Fedora 10 system, with findutils-4.4.0-1.fc10.i386:

find <path> -daystart -ctime 0 -print

The -daystart flag tells it to calculate from the start of today instead of from 24 hours ago.

Note however that this will actually list files created or modified in the last day. find has no options that look at the true creation date of the file.