Linux – How to find files that are not modified in the last five months

date-modifiedlinux

At our university we have the policy that on certain disks' data is deleted if it is not modified for six months. Now I would like to list all files that have not been modified in the last five months.

How can I do this? I have access to all basic Linux tools, like Bash, find, etc.

Best Answer

It is

find directory -mtime +150

for the files not modified in this period (-150 will list the modified files).

Related Question