taosim

ps -e -o \'pid,comm,args,pcpu,vsz,stime,user,uid\' |grep chrome|grep -v grep
watch \'ps -e -o \'pid,comm,args,pcpu,rsz,vsz,stime,user,uid\' |grep chrome |grep -v grep\'
ps -aux|awk \'{print $4"\t"$11}\'|grep -v MEM|sort -r
ps -axu|awk \'{print $4,$11}\'|sort -r



top -b -n 1 |grep chrome|awk \'{print "cpu:"$9"%","mem:"$10"%"}\'
top -d 1
然后shift + m(Sort by memory usage)
top,按下f后可以选择各个选项:
Fields Management for window 1:Def, whose current sort field is %CPU
Navigate with Up/Dn, Right selects for move then <Enter> or Left commits,
\'d\' or <Space> toggles display, \'s\' sets sort. Use \'q\' or <Esc> to end!

 

参考资料地址

分类:

技术点:

相关文章:

  • 2021-04-16
  • 2021-11-29
  • 2021-11-15
  • 2021-11-07
  • 2021-12-20
  • 2021-08-27
猜你喜欢
  • 2021-10-26
  • 2021-10-16
  • 2021-12-28
  • 2021-06-27
  • 2021-10-16
  • 2021-10-26
相关资源
相似解决方案