How do I find all the files that were create only today and not in 24 hour period in unix/linux
Linux – How to find all the files that were created today in Unix/Linux
linuxunix
Related Question
- Linux – How to change permissions for a folder and its subfolders/files in one step
- Linux – How to exclude a directory in find . command
- Linux – Given two directory trees, how can I find out which files differ by content?
- Linux – How to recursively find all files in current and subfolders based on wildcard matching
- Linux – How to change the output color of echo in Linux
- Linux – How to find all files containing specific text on Linux
Best Solution
On my Fedora 10 system, with
findutils-4.4.0-1.fc10.i386
: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.