sandy9707 / Yeziblog-Comments

0 stars 0 forks source link

Linux操作小技巧 | Yezi's Hexo Blog #14

Open sandy9707 opened 11 months ago

sandy9707 commented 11 months ago

https://yeyeziblog.eu.org/2023/06/05/Tech/Linux/Linux%E6%93%8D%E4%BD%9C%E5%B0%8F%E6%8A%80%E5%B7%A7/

引言效果展示过程内存占用过高12345678# 查看内存占用前10位:ps aux | head -1;ps aux |grep -v PID |sort -rn -k +4 | head -101# 或者ps aux --sort -rss | head -n 10# 杀死前7位sudo kill $(ps aux |grep -v PID |sort -rn -k +4 | head -7 |