82

How do I see a list of all running processes/tasks on macOS/OS X?

Tetsujin
  • 115,663
reaffer
  • 1,021

10 Answers10

74

Inside Terminal, you can type ps aux

enter image description here

Terminal is available under the utilities folder in the App folder.

pmagunia
  • 1,069
  • 1
    Better yet, you can run pgrep -lf . to get all running processes with their PIDs and Names. Very useful if you want to kill a process as part of a script with pkill -x "name" – Aternus Jan 31 '22 at 10:11
45

Applications / Utilities > Activity Monitor

enter image description here

Tetsujin
  • 115,663
19

You can use top -o mem inside terminal, to see running processes

nohillside
  • 100,768
victor
  • 191
8

You can use

top -o cpu

or

top -o rsize

or

ps aux

Anton Vlasiuk
  • 81
  • 1
  • 2
7

The app /Applications/Utilities/Activity Monitor is what you're looking for. If you use the command line in Terminal, the top command is useful too. In Terminal, type man top to see the various options. Activity Monitor shows you a wealth of information about each process.

IconDaemon
  • 19,234
3

To see the process names just by themselves with quotes and new lines, try this in Terminal:

ps axc | sed "s/.*:..... /\"/" | sed s/$/\"/
Tomachi
  • 135
2

Try top -o +state, it will show all the running processes in the top of the 'top', however, below it will also show the sleeping processes.

ananda
  • 21
2

Note: This solution requires pstree to be installed from either MacPorts (sudo port install pstree) or Homebrew (brew install pstree) first.

To understand the relationship between processes, pstree is your friend. Without any switches it will show ALL processes.

However, that produces quite some verbose output. To help narrow the search space for the issue, you can use the -u switch, to limit output to puke out only your own processes:

pstree -u YourUserName

I had high CPU activity and wanted to see what I did that was triggering it, so being able to see how processes were chained (spawned) was more interesting to me.

Anyhoo, hope this helps you narrow to isolate the cause of a system issue quicker.

F1Linux
  • 1,681
0

If you need something in text mode but ps and top aren't good enough for you then try htop (installable with brew install htop) — it will interactively show the list of proceses (similar to Activity Monitor), as well as allow to do the following:

  • filter processes by name with /
  • kill with k
  • inspect a process with lsof with L
  • show the process tree hierarchy with t
  • sort by CPU, state, priority, memory, etc with F6
  • display CPU load per each core
ccpizza
  • 2,995
  • 3
  • 36
  • 41
-3

Okay, look what I found:

You can use - Dock - Launch Menu (Just press Command + Option + ESC) - Install special app for that (e.g. Activity Monitor) - Look using terminal - Or use console commands

and that is not the full list! I founded all these methods here: https://osxtips.net/view-processes-mac/

Ofc, you can watch by yourself for more using google, bing, etc. C: