From owner-freebsd-questions Tue Mar 12 8:33:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id DB1C137BB4B for ; Tue, 12 Mar 2002 08:32:50 -0800 (PST) Received: from user-119a2km.biz.mindspring.com ([66.149.10.150] helo=sylvester.dsj.net) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16kpCe-000374-00; Tue, 12 Mar 2002 08:32:44 -0800 Received: (from dsj@localhost) by sylvester.dsj.net (8.9.3/8.9.3/Debian 8.9.3-21) id LAA24699; Tue, 12 Mar 2002 11:31:42 -0500 Date: Tue, 12 Mar 2002 11:31:42 -0500 From: "David S. Jackson" To: Steve Wingate Cc: Jolok , FreeBSD Questions Subject: Re: Freeing space on /usr Message-ID: <20020312113142.A24523@sylvester.dsj.net> Reply-To: "David S. Jackson" References: <001d01c1c896$e76a7d90$06aae00c@jolok> <002e01c1c7ce$a27bfe70$0501a8c0@VELOSYSTEMS.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <002e01c1c7ce$a27bfe70$0501a8c0@VELOSYSTEMS.NET>; from steve@velosystems.net on Sat, Mar 09, 2002 at 04:58:04PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Mar 09, 2002 at 04:58:04PM -0800 Steve Wingate wrote: > cd /usr/ && du | more > > > ----- Original Message ----- > From: "Jolok" > To: "FreeBSD Questions" > Sent: Sunday, March 10, 2002 4:51 PM > Subject: Freeing space on /usr > > > > hello: > > > > i just made xfree86-4.2.0 after a clean install of FreeBSD 4.5 with the > > ports collection and no x. the make went well, but after 'make install', > it > > cooks along for awhile, then i run out of space on my /usr slice. i am > > running a 3.2 GB disk with s 1.4GB /usr slice--why is this happening? I > was > > under the impression that FreeBSD was fairly small. What can i safely > > delete (or move) to make room for X? How do I find the size of any > > particular directory? Where (in the standard documentation) should i read > > about this? I do read before i mail, but i haven't found any help yet. > > Thank you. > > > > jolok You could try a little (bash) script: #!/usr/local/bin/bash dirname=$1 size=${2:-500} header=${3:+"SIZE\tFILENAME\n"} echo -e -n $header find ${dirname:=$HOME} -size +${size} -depth -ls | sort -nr | less It will give you an idea where the space is going by finding files over 500K or by $2, whichever you like. -- David S. Jackson dsj@dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I'm going to give my psychoanalyst one more year, then I'm going to Lourdes. -- Woody Allen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message