On Sat, 16 May 2015 00:47, Anton Aylward wrote:
On 05/15/2015 05:33 PM, Carlos E. R. wrote:
du -hsx --exclude=/proc --exclude=/sys --exclude=/run --exclude=/dev /*
That will tell you the sizes of all your directories sprouting from the root (not all possible mounts, though: for that, remove the 'x').
NO!
The "/*" will include "/home", just not things mounted on /home/
So in my case, all the things such as /boot/, /tmp/, /srv/, and more which are all mounted file systems will show up.
All of /home/anton/ shows since that is not mounted. It is /home/anton/mail that doesn't.
What you want is this (sorry for the line break)
du -hx --exclude=/proc --exclude=/sys --exclude=/run --exclude=/dev --max-depth=1 /
As said by Anton, use the "--one-file-system" alias "-x" option. As /sys, /proc, /dev, /run, are all mounted (check with a simple "mount") these directories will not have to be excluded, they are already out. This leaves: du -hx --max-depth=1 / (hint: with "-m" instead of "-h" it is easier to find the 'big ones') A nice (and short) overview of what is mounted where is gives with: df -x tmpfs -x devtmpfs -h - Yamaban -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org