#####################low space : ################################
Linuxguy check
- [root@wlg2 ~]# df -kh : check which partition got low space
- [root@wlg2 ~]# df -hP /opt/Oracle/
Filesystem Size UsedAvail Use% Mounted on
/dev/mapper/oracle -40G 32G 5.7G 85%/opt/Oracle
- [root@wlg Oracle]# du -sck * | sort -n OR
du -sck * --block-size=1GB | sort -n
4 lost+found
5942460 em12-med
27139136 em12
33081600 total
- File deleting/Cleanup
Userfollowing command to find and remove files
- ls -tr | head -n 1 -- check the oldest file
find ./ -name '*.txt' -mtime +XX --- modifiedmore than XX days ago
find ./ -name '*' -mtime +40 | wc -l
find ./ -name '*' -mtime +40 -exec rm -rf {} \; --- delete files are modified 40 days ago
find ./ -name '*' -mtime +40 | wc -l
#####################low space END################################