Find files created today on linux

Especially if you are looking for hacked files via the server console or just need an overview of your backups, there is a very good little parameter at find.

find . -type f -daystart -ctime -1

This is a very nice way to find files created today. Now this command is different from the following command.

find . -type f -ctime -1

The -daystart flag tells find to use the start of day (according to system time) when looking for files created today. Without daystart, the flag ctime -1 instructs find to find files that were created in the last 24 hours.

Leave a Comment