When I do df -h
on my Linux server, it shows 100% used. I have since deleted files to create space. When I do du -sh ./*
to see the capacity of each directory, it does not add up to the 2 TB capacity of my drive and my server/network monitor continues to tell me I have used 100% of my space. Why?
# du -sh ./*
4.0K ./%1
32G ./datapump
4.0K ./Desktop
1.9G ./faxes
12K ./guru
2.1G ./home
344K ./named
9.5M ./oradiag_root
4.0K ./svnpassword
0 ./tape_error
20G ./test
# df
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
1.9T 1.9T 0 100% /
/dev/sda1 99M 21M 74M 22% /boot
tmpfs 4.9G 0 4.9G 0% /dev/shm
//192.168.231.16/backup
3.7T 669G 3.0T 18% /home/MARMOT
du -sh
over (non-dot) directories in the home directory of user root. Comparedu -sh /*
– user4556274 Aug 22 '16 at 15:16ls
, but they are still there). – Martin Nyolt Aug 22 '16 at 15:42du -sh ./*
shows non-dot directories under the current directory, whatever that happens to be. If it's run fromroot
's home directory, you're right, but if it's run from the root directory, it's essentially equivalent todu -sh /*
. (Yes, the presence of aDesktop/
directory suggests it's run from some account's home directory -- not necessarilyroot
.) – Keith Thompson Aug 22 '16 at 18:55