Re: System warning that "/var" is almost full
- Date: Tue, 30 Apr 2019 08:20:59 -0400
- From: Michael Stone <mstone@xxxxxxxxxx>
- Subject: Re: System warning that "/var" is almost full
On Tue, Apr 30, 2019 at 02:12:51PM +0200, Pascal Hambourg wrote:
Le 30/04/2019 à 07:35, Ben Finney a écrit :
You can see them sorted by size with:
$ du --max-depth=1 /var | sort --numeric-sort
The ‘-h’ (‘--human-readable’) is useful as its name implies; but it has
the disadvantage of being difficult to visually compare between lines.
Better to use absolute numbers if you want to compare accurately.
You can use '-h' in both 'du' and 'sort'.
du -hxd1 /some/path | sort -h
Or just use du -m (megabytes) which makes numbers that are short enough
to actually read, but consistent from line to line.