centos服務器如何用命令查看哪個程序內存占用情況,硬盤空間占用


1.free -m只能查看內存總量情況

2.top M ( 注意M是大寫)

3.ps aux|head -1; ps aux | sort -k4nr | head -10

---------------------

硬盤占用

 df -lh

(查看文件占用)

du -h --max-depth=1

(查看刪除占用)

lsof -n | grep deleted

查看日志

tail -1  /var/log/boot.log


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM