[TriLUG] LS question

rob wildermann alteran at yahoo.com
Wed Sep 17 14:50:16 EDT 2003


Find IS probably the best way to go here. If you want, you can get
something a little more readable than the man page at O'Reilly:

http://www.oreillynet.com/linux/cmd/cmd.csp?path=f/find

The very first argument, "atime" is what you're looking for. 

I don't have a box at work to verify my syntax on, but I THINK the
command:

find / -atime +730

will do what you want. (The "+730" is days). As always, if the list
scrolls like crazy, you can add either 

|more

to have a scrollable list, or

> oldfiles.txt

to create a textfile with the output in it.

Good luck!
--rob wildermann

--- Tarus Balog <tarus at blast.com> wrote:
> 
> On Wednesday, September 17, 2003, at 11:37 AM, Byarlay, Wayne A.
> wrote:
> 
> > First newbie question.
> >
> > What's the "ls" command for, "list all files that have not been  
> > accessed for
> > over 2 years"?
> >
> 
> man find
> 
> -T
>
________________________________________________________________________
> 
> ___
> Tarus Balog							Main:		+1 919 545 2553
> Blast Internet Services, Inc.			Fax:			+1 919 542 5955
> Email: tarus at blast.com					URL: http://www2.blast.com/tarus
> PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82
> B45C
> 
> -- 
> TriLUG mailing list        :
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc




=====
--rob wildermann
alteran AT yahoo DOT com

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the TriLUG mailing list