[CentOS] script to find last accessed time?

L.A.Hurst at lboro.ac.uk L.A.Hurst at lboro.ac.uk
Tue Dec 2 10:34:58 UTC 2008

On Tue, 2008-12-02 at 10:27 +0000, Tom Brown wrote:
> Can anyone help me with the syntax to find last accessed time on a bunch 
> of dir's - something like show me the files that were last accessed 6 
> months or more ago?
> thanks
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Something like `find . -atime 180`? This will find all files in the
current directory which were last accessed more than 180 days (6*30)
ago. See `man find` for more details and options.

Laurence Hurst
IT Services Specialist
Loughborough University

More information about the CentOS mailing list