From owner-freebsd-questions Wed Oct 24 1:50:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 9EFE537B410 for ; Wed, 24 Oct 2001 01:50:42 -0700 (PDT) Received: (qmail 85012 invoked by uid 100); 24 Oct 2001 08:50:36 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <15318.32988.185626.446592@guru.mired.org> Date: Wed, 24 Oct 2001 03:50:36 -0500 To: =?ISO-8859-1?B?U/hyZW4gTmVpZ2FhcmQ=?= Cc: questions@freebsd.org Subject: Re: Running out of space In-Reply-To: <8047262@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 S=F8ren Neigaard types: > I'm running out of space on /usr >=20 > How do I figure out what under /usr takes up most space? >=20 > I have build some ports, can I easily remove the source, and how do I= > do it? Others have pointed out du and xdu, but have missed the possibility that you have a file system mounted on /usr. I prefer "du -xa /usr | sort -rn > /tmp/usr.space" That lists all the files on /usr and how big they are. For directories, it lists the size of the everything in the directory. Then sort it so the biggest things are at the top of the list, which makes pruning easy. If you'd rather use xdu, the same thing works. =09=09=09=09http://www.mired.org/home/mwm/ Q: How do you make the gods laugh?=09=09A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message