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
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?man find? t
I'd use find /path/ -atime +180 -print 2008/12/2 Tom Brown <tom at ng23.net>> 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20081202/d7a07a20/attachment-0003.html>
L.A.Hurst at lboro.ac.uk
2008-Dec-02 10:34 UTC
[CentOS] script to find last accessed time?
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/centosSomething 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