Re: oldest file in a filesystem

From: Taylor, David (DTaylor@WBMI.COM)
Date: Thu Apr 29 2004 - 10:59:47 EDT


Both of these suggestions only sort, by age, at the directory-level.
This file-system has ~2000 directories in it. I need to find the oldest
file in the entire file-system.

David

 

 

 

 

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Renison, Rick
Sent: Thursday, April 29, 2004 9:20 AM
To: aix-l@Princeton.EDU
Subject: Re: oldest file in a filesystem

 

ls -Rrlt /fs | head

 

works really fast.

 

Rick Renison, EDS Canada, DuSC, Oshawa, Ontario
There's no place like 127.0.0.1
* mailto:rick.renison@eds.com

        -----Original Message-----
        From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On
Behalf Of Taylor, David
        Sent: April 29, 2004 9:53 AM
        To: aix-l@Princeton.EDU
        Subject: oldest file in a filesystem

        Hi *

         

        I am trying to trouble-shoot a problem with cache-corruption on
an imaging system. It would be very helpful if I could locate the
oldest file (modified or created) in that cache. Does anyone know of a
script that would do this? The cache is about 35GB in size and the
average file size is ~ 100K.

         

        The corruption is definitely application-related. We would just
like to pinpoint the point in time that it began in order to discover
the root cause.

         

        TIA

         

        David Taylor

         

        
        
        
**********************************************************************
        This email and any files transmitted with it are confidential
and
        intended solely for the use of the individual or entity to whom
they
        are addressed. If you have received this email in error please
notify
        the system manager.
        
        This footnote also confirms that this email message has been
swept by
        MIMEsweeper for the presence of computer viruses.
        
        www.mimesweeper.com
        
**********************************************************************

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:52 EDT