https://blog.gtwang.org/linux/ps-top-find-processes-by-cpu-memory-usage/
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head
top -b | head -n 17
以下在我的版本不work
top -b -o +%CPU | head -n 17
top -b -o +%MEM | head -n 17
沒有留言:
張貼留言