ctime, mtime and atime are very useful commands when dealing with time related search commands in the linux Family of operating systems.
This post is about how to use them in
a simple but yet very powerful way. Let’s get to it:
Let say you want to find all files in a folder that follow/fulfill the following criteria:
- the folder is /vat/lib/mysql/data
- The file name contains: mysql-bin.
- The files are younger than 2 days.
In other words find all the mysql binary log files that are not older than 2 days. Continue reading