I have a Centos 7 VM and I want to know what consumes the 126G on the /dev/mapper/centos-root fs. I have 2 mount points and I unmounted them to make sure there's nothing reserving space under them and mounted them again .
I've also ran sudo lsof +aL1
but there was nothing reserving GBs
Is there more efficient way to know what consumes space ?
du
command – mrc02_kr Oct 24 '18 at 09:25find / -mount -print0|xargs -0 -P 4 --max-lines 1 du -sb|sort -n -r >sizes.txt
. The result will be insizes.txt
of your current directory. – peterh Oct 24 '18 at 20:21