How do I see a list of all running processes/tasks on macOS/OS X?
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.
If you need something in text mode but
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
- show the process tree hierarchy with t
- sort by CPU, state, priority, memory, etc with F6
- display CPU load per each core
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: