How can I find a specific process with “top” in a Mac terminal

前端 未结 8 1721
执笔经年
执笔经年 2021-02-01 02:18

I\'ve tried top | grep skype for example but it doesn\'t work. I\'m trying to find a specific process by name.

8条回答
  •  南笙
    南笙 (楼主)
    2021-02-01 02:57

    if you really love top, you could try:

    top -b -n 1 | grep skype
    

    e.g.

    kent$  top -b -n 1 |grep dropbox
     4039 kent      20   0  184m  14m 5464 S    0  0.4   0:58.30 dropbox
    

提交回复
热议问题