ctime, mtime and atime; find command

ctime, mtime  and atime are very useful commands when dealing with time related search commands in the linux Family of operating systems.

ctime; Linux find command

ctime; Linux find command

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:

  1. the folder is /vat/lib/mysql/data
  2. The file name contains: mysql-bin.
  3. 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