Linux 命令
S
sadscv
编辑于
•
发布于
top 命令
shift+p 按CPU排序。
shift+m 按内存排序。
k kill pid.
z 切换颜色(突显当前运行程序)
u 只显示某user.
d change delay.
pgrep
pgrep 'name_of_process'
用法e.g.
kill $(pgrep netease)
top -p $(pgrep -d',' netease) #只查看网易云进程,top -p expects a comma separated list of pids
top -c -p $(pgrep -d',' -f netease-cloud-music) #-f flag in pgrep makes it match the command line instead of program name
阅读 2
评论 0