how to resolve the prolem of lack of space in linux

1. df -h

2. find  / -type f -size +500M 大于500M的

3. du -sh ; du -h  --max-depth=1 | sort -n | tail -5;du -sm * | sort -n

4. ps aux --cols=1000

5. dev: sudo /usr/sbin/httpd_dev -k stop/start

6. sudo tar -cjf error_log.20101215.tar.bz2 error_log

7. tar cjf - logs/ |split -b 1m - logs.tar.bz2  分包压缩

8. lsof /u01 |grep delete

9. /usr/sbin/lsof|grep deleted;  echo > /proc/pid/fd/fd_number

10. sync;echo 3 > /proc/sys/vm/drop_caches;free -m;

猜你喜欢

转载自wuchengyi.iteye.com/blog/844598