I am trying to find out what files/folders are using most space on the filesystem
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 94G 85G 4.4G 96% /
tmpfs 16G 7.9G 7.9G 50% /dev/shm
/dev/sda1 477M 82M 370M 19% /boot
I install ncdu
to see what is taking space but i still couldn't find out what takes most of the space
1.9 GiB [## ] /var
1.2 GiB [# ] /usr
372.8 MiB [ ] /lib
129.7 MiB [ ] /tmp
79.3 MiB [ ] /boot
74.8 MiB [ ] /root
28.6 MiB [ ] /etc
18.4 MiB [ ] /lib64
18.1 MiB [ ] /opt
10.8 MiB [ ] /sbin
Edit
I did delete some big log file before posting this thread.I found it strange that it was showing much difference on df -h
.On @Pavel Šimerda suggestion i did a soft reboot and here is the output
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 94G 3.9G 85G 5% /
tmpfs 16G 236M 16G 2% /dev/shm
/dev/sda1 477M 86M 366M 20% /boot
Why was a reboot needed in this case ?
service rsyslog restart
(the name rsyslog may vary depending on your OS) so that it closes the log file. – Mark Plotnick Jun 01 '15 at 16:13