Date: Wed, 17 Dec 2008 17:28:15 -0000 From: "Barry Byrne" <barry.byrne@wbtsystems.com> To: "'John Almberg'" <jalmberg@identry.com>, <freebsd-questions@freebsd.org> Subject: RE: How to find files that are eating up disk space Message-ID: <5FB3CDBC7A1447EF872A0AFD4BA1EA7D@wbt.wbtsystems.com> In-Reply-To: <283ACBF4-8227-4A24-9E17-80A17CA2A098@identry.com> References: <283ACBF4-8227-4A24-9E17-80A17CA2A098@identry.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of John Almberg > Sent: 17 December 2008 17:17 > To: freebsd-questions@freebsd.org > Subject: How to find files that are eating up disk space > > Here is another newbie question that is driving me crazy, but is > probably a laughable situation to an experienced admin... > > I've got a smallish server that is suddenly out of disk space in the > '/' partition. > > Probably some log files have gotten out of hand. I am going to start > looking for the culprits by hand... basically inspecting sub > directories, but there must be a better way! > > Is there a command line tool that will help me figure out where the > problem is? > > Even better, is there a way to proactively monitor the file system, > so I can fix problems before I start getting 'out of disk > space' errors? > > Any hints, much appreciated. reebsd-questions-unsubscribe@freebsd.org" As a start you might want to look at the 'du' command. man du for more info. But for a quick start: du -x -d2 -h / should give you some useful info. You generally shouldn't have much writing to the / partition, unless you haven't greated a separate /var partition, which is recommended. - barry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5FB3CDBC7A1447EF872A0AFD4BA1EA7D>