My du is: $ du --version du (GNU coreutils) 8.30 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund, David MacKenzie, Paul Eggert, and Jim Meyering. $ Admittedly, this is pretty old. If the bug I am about to describe is already fixed, please let me know. I used the following command to check disk usage in ~: $ du -sxc ~/* Unfortunately, this hung when it hit the directory ~/sshfs_mount, which is sshfs mounted to my home dir on some other system. To get it to do the right thing, I had to add: '--exclude=sshfs*' to the command line. Shouldn't -x have prevented it from descending into the sshfs_mount directory? Note that I use -x on lots of other commands (e.g., find), since I usually don't want it to waste time searching other systems (which is slow). I've never had a problem with it before (this is the first time I've used it with "du"). Note that I have not tested du/-x on any other type of mounted filesystem. I don't know if the problem is limited to sshfs mounts. But it seems likely, since sshfs is kind of obscure and not widely used. ================================================================================= Please do not send me replies to my posts on the list. I always read the replies via the web archive, so CC'ing to me is unnecessary. Note that they always end up in my Spam file anyway, so it is annoying to have to periodically clean that out.