From owner-freebsd-questions Wed Sep 20 7:58:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fremont.bolingbroke.com (adsl-216-102-90-210.dsl.snfc21.pacbell.net [216.102.90.210]) by hub.freebsd.org (Postfix) with ESMTP id 70C9B37B423 for ; Wed, 20 Sep 2000 07:58:47 -0700 (PDT) Received: from fremont.bolingbroke.com (fremont.bolingbroke.com [216.102.90.210]) by fremont.bolingbroke.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id HAA89806; Wed, 20 Sep 2000 07:58:44 -0700 (PDT) Date: Wed, 20 Sep 2000 07:58:44 -0700 (PDT) From: Ken Bolingbroke To: =?Windows-1252?Q?Ari_Sigur=F0sson?= Cc: freebsd-questions@FreeBSD.ORG Subject: Re: a few questions about freeBSD In-Reply-To: <001301c0230e$afb54260$05aa90c2@solver.is> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 20 Sep 2000, [Windows-1252] Ari Sigur=F0sson wrote: > how do I get the version of my freeBSD when I'm logged on in telnet. uname -a > I have /var in 100% usage, where do I find files that is safe to remove? Probably you have log files in /var/log that haven't been trimmed. > how do I find the largest file in a directory or list with subdirs and > sorted by size? 'du /var' will show the sizes in each subdirectory of /var. To sort by size, from smallest to largest, do: du /var | sort -n If you have other filesystems mounted below /var, ie; /var/mail or something, you will want to add the -x switch to 'du' to keep it on the /var filesystem > is this about 337MB? > /dev/wd1s1e 345695 318075 -35 100% /var Your filesystem is 337MB, yes. The "Avail" and "Capacity" numbers actually reflect a slightly smaller size, because a certain portion of each filesystem is reserved for root's use. That's why it says it's at 100% capacity when you've used 318075K on a 345695K filesystem. You actually do have a little bit of extra free space that only root can use. Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message