LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   mtime in find vs ls (http://www.linuxquestions.org/questions/linux-software-2/mtime-in-find-vs-ls-384054/)

lslade 11-17-2005 02:06 PM

mtime in find vs ls
 
Hello,

I am trying to identify old files for deleting or archiving. In this case more than six years old. So I try this:

$ find /mydir -follow -mtime +2190 -print > /tmp/2190.txt

When I read the output and change to one of the relevant directories I cannot find any files that are older than 6 years.

I have tried:
ls -lta which should should the modification time.
ls -ltac and ls -ltau see access time and ctime as well.

None of these dates are older than 6 years.

What am I missing?


All times are GMT -5. The time now is 11:05 AM.