How to exclude a specific directory in ncdu? [closed]

ncdu has the same command line options as the du command, so to exclude a directory simply use: –exclude /dir/path For example: ncdu -x / –exclude /home/tmp To exclude multiple directories: ncdu -x / –exclude /home/tmp –exclude /var/log etc. Note that you should avoid a trailing slash (use /home/tmp NOT /home/tmp/) otherwise it will fail … Read more

du counting hardlinks towards filesize?

Hardlinks are real references to the same file (represented by its inode). There is no difference between the “original” file and a hard link pointing to it as well. Both files have the same status, both are then references to this file. Removing one of them lets the other stay intact. Only removing the last … Read more