Search Big File and HouseKeeping Log Linux
Search File With Size
===============================
find / -type f -size +200000k -exec ls -lh {} \; | awk ‘{ printf $9 “: ” $5 }’
find / -type f -size +500M -exec ls -lh {} \; | awk ‘{ printf $NF “: ” $5 }’
Search Process Delete Gantung (Memakan Size disk)
==================================================
#lsof | grep “/” | grep deleted
#kill -9 [PID]
#for pid in $(lsof | grep “/app_log” | grep deleted | awk ‘{print $2}’); do kill -9 $pid; done
#Cleansing Log > 3 hari
find /data_2/rsync-vm/log/*.log -mtime +3 type f -delete