Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2000 07:58:44 -0700 (PDT)
From:      Ken Bolingbroke <hacker@bolingbroke.com>
To:        =?Windows-1252?Q?Ari_Sigur=F0sson?= <bsd@hrappur.solver.is>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: a few questions about freeBSD
Message-ID:  <Pine.BSF.4.21.0009200749280.87276-100000@fremont.bolingbroke.com>
In-Reply-To: <001301c0230e$afb54260$05aa90c2@solver.is>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009200749280.87276-100000>