du
Size of files by pattern
find /path/to/dir -type f -name '*.png' -exec du -cb {} + | grep total$ | cut -f1 | paste -sd+ - | bc
Size of one folder in bytes
Folders size to first level with human size
du -shx vs df -h | process holding an unlinked file
Example:
To find process holding an unlinked file:
# lsof -a +L1 {mount-point}
lsof -a +L1 /dev/vda3
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME
dbus-daem 2692 dbus 5r REG 253,3 10406312 0 1966985 /var/lib/sss/mc/initgroups (deleted)
sssd_be 2874 root 20r REG 253,3 10406312 0 1966985 /var/lib/sss/mc/initgroups (deleted)
zabbix_ag 4241 zabbix 1w REG 253,3 662886 0 917588 /var/log/zabbix/zabbix_agentd.log-20151124 (deleted)
zabbix_ag 4241 zabbix 2w REG 253,3 662886 0 917588 /var/log/zabbix/zabbix_agentd.log-20151124 (deleted)
bareos-fd 5215 root 9r REG 253,3 24390987571 0 936323 /var/log/messages (deleted)