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.