跳过正文
  1. Posts/

Linux 中获取 CPU 和内存的使用情况

·15 字·1 分钟
技术 Bash Scripts
ub(s)erate
作者
ub(s)erate
# CPU 利用率
ps -p ${PID} -o %cpu
# 内存
ps -p ${PID} -o rss