From owner-freebsd-questions@FreeBSD.ORG Fri Oct 31 09:35:57 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63A4516A4CE for ; Fri, 31 Oct 2003 09:35:57 -0800 (PST) Received: from blacklamb.mykitchentable.net (207-173-254-228.bras01.elk.ca.frontiernet.net [207.173.254.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5138C43FD7 for ; Fri, 31 Oct 2003 09:35:52 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: from l035522 (unknown [165.107.42.110]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 1F7583BF38F; Fri, 31 Oct 2003 09:35:51 -0800 (PST) Message-ID: <008301c39fd5$6dce6880$6e2a6ba5@lc.ca.gov> From: "Drew Tomlinson" To: "David Carter-Hitchin" References: Date: Fri, 31 Oct 2003 09:35:50 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: FreeBSD Questions Subject: Re: Help With 'find' Syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 17:35:57 -0000 ----- Original Message ----- From: "David Carter-Hitchin" To: "Drew Tomlinson" Cc: "FreeBSD Questions" Sent: Thursday, October 30, 2003 5:55 PM Subject: Re: Help With 'find' Syntax > Hi Drew, > > This should find all files created or modified on 25th October: > > find / -mtime 6 -ls -o -ctime 6 -ls > > (As today is 31st October which is 6 days after 25th. You may need to > widen your search a little with a seperate search with 7 as the paramter > as 6 may not catch files that were created over 6 * 24 hours ago (but were > still on the 25th); not sure about that). Thank you for your reply. I tried your suggestion and it seems to get what I want. However there are so many little files that I thought I'd modify the command to: find /usr \( -mtime 6 -ls -size 100 \) -o \( -ctime 6 -ls -size 100 \) -print If I understand the '-size' primary correctly, this means I would find files that are '100 512-byte blocks' in size or '50k'. Yet I still get output like this: 762155 2 -r--r--r-- 1 root wheel 928 Oct 25 15:12 /usr/local/man/man3/pcre_compile.3.gz 762155 2 -r--r--r-- 1 root wheel 928 Oct 25 15:12 /usr/local/man/man3/pcre_compile.3.gz (And why is this file listed twice, anyway?) So I guess my question is "how can I find files created or modified on Oct. 25 and are larger than ?" Thanks for any help. This is really confusing to me. Drew > > HTH, > David > > On Wed, 29 Oct 2003, Drew Tomlinson wrote: > > > On October 25, my /usr partition lost nearly 50% of it's available space. > > This disk hasn't had any significant size changes since I built the system > > as it basically serves as a gateway. > > > > I'm trying to use the find command to determine what may have been written > > to the disk but am not having any luck. I see primaries such > > as -atime, -mtime, -ctime, and -newer and have read the man pages but do not > > understand what the best combination to find those files. Basically how do > > I use 'find' to show me all file that were created or modified on October > > 25? I've tried commands such as "find /usr \( -newerct 4d \! -newerct 3d > > \) -print" but nothing is returned. > > > > Thanks, > > > > Drew > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > > > > >