Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

grep

macos

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

like image 236
c1p0 Avatar asked Sep 21 '11 13:09

c1p0


People also ask

How do you check a particular process in top command?

To filter the top output to a specific process, press the O key and enter the entry as COMMAND=name, where the name refers to the process name. Press ENTER, and the top utility will filter the processes to systemd only.

How do I see processes in Mac Terminal?

Launch Terminal (Finder > Applications > Utilities). When Terminal is running, type top and hit Return. This will pull up a list of all your currently running processes. As in the Activity Monitor, this list shows your processes in decreasing order of how much of your resources they're consuming.

How do you use top command on Mac?

The top command shows a live view in the Terminal with the list of apps with the most CPU utilization. The top command also displays memory, CPU and disk stats at a glance. To close this view, either close the Terminal window or go back to the command line prompt by pressing Control + C to quit the top command.


1 Answers

Use this instead: ps -ax | grep -i skype

like image 113
xofer Avatar answered Sep 20 '22 17:09

xofer