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
I'd use
find /path/ -atime +180 -print
2008/12/2 Tom Brown tom@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@centos.org http://lists.centos.org/mailman/listinfo/centos
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@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.