Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-17-2005, 01:06 PM   #1
LQ Newbie
Registered: Nov 2005
Location: Canada
Distribution: Debian
Posts: 14

Rep: Reputation: 0
mtime in find vs ls


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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 12:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
mtime/ctime changed on directory entries stardot Linux - Security 2 11-29-2004 10:44 PM
why does sftp change mtime file attribute? hazelhill Linux - Software 3 10-17-2004 09:42 PM
ls --mtime ? mikshaw Linux - Newbie 11 01-25-2004 02:09 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration