Check larger files:
find . -xdev -size +10000000c -exec ls -l {} \;
find . -xdev -type f -size +1024 -ls | awk '{print $11, $7}' | sort -rn +1 | awk '{print $1, $2/1024/1024 "MB"}'
Check core files:
find . -xdev -name core -exec ls -l {} \;
List and remove the modified file
find . -xdev -mtime +60 -exec ls -l {} \;
find . -xdev -mtime +60 -exec rm -rf {} \;
Check disk usage:
du -sk * |sort -n
du -kx .| sort -n
du -sxk * | sort -nb | tail
du -sk * | sort -nb | tail
du -sk *
du -sk ./*
du -sk .
0 comments