I have a Western Digital external hard drive with one partition and a NTFS filesystem. In Lubuntu, under its top directory:
$ sudo du -d 0 -h * | sort -h 0 temp 7.5K $RECYCLE.BIN 25K System Volume Information 690M dir1 1.5G dir2 3.2G dir3 15G dir4 71G dir5 98G dir6 522G dir7
roughly the drive has 0.7+1.5+3.2+15+71+98+522 = 711.4 G in use.
$ sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb1 932G 880G 53G 95% /media/t/My Passport
and gparted shows the hard drive has 931.48GiB in Size, 879.47GiB Used, and 52.01GiB Unused.
So why do the three ways give different results? Why does the first way give very different result from the the other two in particular?
I just found a hidden directory
.Trash-1000 under the top directory.
$ du -h -d 0 .Trash-1000 166G .Trash-1000 $ ls .Trash-1000/ expunged files info
What is the purpose of
How shall I clean it up? Can I simply
rm -r .Trash-1000?