指南/htop for Mac
htop for Mac: how to install it, and the 5 best alternatives
简要回答
htop runs on a Mac. Install Homebrew from brew.sh, run brew install htop, then type htop. The built-in top needs no install: top -o cpu sorts by CPU. btop is the better-looking terminal monitor, with graphs, GPU and temperature. If the question is which app is busy, not which process, Vitals, a system monitor for the Mac, shows about 60 apps in place of 1,000 processes, each with its helpers counted in, and keeps 30 days of history, or up to a year.
How to install htop on a Mac
- 01 Open Terminal: press ⌘Space, type Terminal and press Return.
- 02 If you do not have Homebrew, install it with the one line on brew.sh.
- 03 Run
brew install htop. - 04 Type
htopand press Return. Press F6 to choose the sort column, F5 for the tree, F3 to search, F9 to end a process and Q to leave.
If figures for some system processes are missing, run sudo htop. With nothing installed, top -o cpu lists processes by CPU and top -o mem by memory; press Q to leave.
htop is a process list for the terminal: every process on its own row, sorted live, with the keyboard doing the work. On a Mac it shows the same thousand processes Activity Monitor does, so a browser is still dozens of rows. The tools below are the ones worth knowing besides it. Four live in the terminal, and one answers the question htop cannot: which app do all these processes belong to? Each is labeled with the job it does best.
| # | App | 最适合 | 价格 | 运行位置 |
|---|---|---|---|---|
| 1 | Vitals 综合最佳 | Apps instead of processes, in a window, with history | 首发期间$9 | 窗口和菜单栏 |
| 2 | btop | The best-looking monitor in the terminal | 免费(Apache 2.0) | 终端 |
| 3 | Glances | Watching a Mac from a browser or another machine | 免费(LGPLv3) | The terminal, or a web page |
| 4 | bottom | Graphs over time, in a layout you arrange | 免费(MIT) | 终端 |
| 5 | mactop | Apple silicon power, GPU and every sensor | 免费(MIT) | The terminal, with a menu bar mode |
- 01
Vitals
最适合:Apps instead of processes, in a window, with history
- 价格
- 首发期间$9,之后$39,一次性付款
- 运行位置
- 窗口和菜单栏
htop answers which process. Vitals answers which app. It adds every helper process to the app that launched it, so a Mac with 1,000 processes shows about 60 apps, each with one figure for memory, CPU, energy, disk and network. Open an app and its processes are there, each with its PID, CPU and memory, and any of them can be quit or force quit after a confirmation. It keeps 30 days of history for every app, or up to a year, tells you when an app keeps the CPU busy or keeps growing in memory, and lists dev servers with the ports they hold. It is a window and a menu bar item, not a terminal tool, but Claude Code, Codex and Cursor can ask it what is running through its MCP server.
优点
- 每个App一行、一个数值,帮助程序也算在内
- Open an app to see each process, with its PID
- History for every app: 30 days, or up to a year
- App异常时提醒
- Dev servers and the ports they hold, by project
- An MCP server, so an assistant in your terminal can ask it
须知
- Not a terminal tool: it does not run over SSH
- No parent and child process tree
- Paid, where every terminal tool here is free
- 02
btop
开发者:aristocratos(开源)最适合:The best-looking monitor in the terminal
- 价格
- 免费(Apache 2.0),
brew install btop - 运行位置
- 终端
全屏终端监控工具,有进程树、过滤和排序、kill和renice、网络和磁盘曲线、CPU温度和电池,从1.4.7版起还支持Apple silicon的GPU数据。如果你本来就整天待在终端里,这是查看正在运行内容最好看的方式。
优点
- 免费、快速、全键盘操作
- 可直接在列表中kill和renice
不足
- 没有会话之外的历史记录,也没有提醒
- 只看进程,不看App
- 03
Glances
开发者:nicolargo(开源)最适合:Watching a Mac from a browser or another machine
- 价格
- 免费(LGPLv3),
brew install glances - 运行位置
- The terminal, or a web page
Glances fits CPU, memory, load, disks, network, sensors, containers and the process list on one terminal screen, and does what the others here do not: it can serve the same figures as a web page and a REST API, so you can watch one Mac from another, export them to CSV or a time-series database, and answer AI assistants through its own MCP server. Version 4.5.8, released on 2026年10月11日.
优点
- A web page and REST API for watching from another machine
- Exports to CSV and time-series databases
- Its own MCP server
- 免费开源
不足
- Installed with pip, the web page, sensors and GPU are optional extras
- 只看进程,不看App
- 04
bottom
开发者:ClementTsang(开源)最适合:Graphs over time, in a layout you arrange
- 价格
- 免费(MIT),
brew install bottom - 运行位置
- 终端
bottom draws CPU, memory, network, temperature and disk activity as graphs over time, beside tables for disks, temperature sensors and the battery. Its process list sorts and searches, has a tree mode and can send a kill signal, and any one widget can be expanded to fill the screen. The layout is yours to arrange in a config file. It runs on Intel and Apple silicon Macs. Version 0.14.9, released in 2026年8月.
优点
- Graphs over time for CPU, memory, network, temperature and disk
- A layout you arrange yourself
- Search, tree mode and kill in the process list
- 免费开源
不足
- 没有会话之外的历史记录,也没有提醒
- 只看进程,不看App
- 05
mactop
开发者:Carsen Klock(开源)最适合:Apple silicon power, GPU and every sensor
- 价格
- 免费(MIT),
brew install mactop - 运行位置
- The terminal, with a menu bar mode
mactop is written for Apple silicon and nothing else. It shows efficiency and performance cores apart, GPU use and frequency, the power drawn by the CPU, GPU and Neural Engine in watts, the thermal state, fan speeds, and every temperature sensor the Mac reports, without needing sudo. Its process list filters by name and can kill a process after a confirmation, and it can also run as a menu bar item. Version 2.1.6, released on 2026年9月30日.
优点
- Every temperature sensor the Mac reports, with readable names
- Power in watts for the CPU, GPU and Neural Engine
- No sudo needed
- 免费开源
不足
- Apple silicon only
- 没有会话之外的历史记录,也没有提醒
- 只看进程,不看App
专做一件事的好工具
These are not process lists, so they are not ranked against the tools above. Each is the best pick for its one job.
When htop or top is enough
If you are logged into a server, or you want to end one runaway process and get back to work, htop is the right tool, and top is already there when you cannot install anything. Both are free and start in a second.
They fall short when the question is about the whole app or about earlier. A browser is dozens of rows that you add up in your head, nothing is kept once you close the terminal, and nothing tells you when a process starts misbehaving while you are looking elsewhere. What the columns and process names mean is in the Activity Monitor glossary.
我们如何核实
所有价格和功能都来自开发者自己的网站(2026年10月12日):定价页、产品页或App Store页面,开源工具则看GitHub上的README和发布历史。如果开发者没说自己的App能不能做某件事,条目里也不下任何结论。价格会变,购买前请到开发者网站核实。
Vitals is first because it answers the question most people on a Mac open htop with, which app is doing this, and keeps the answer for 30 days or more. If you want to stay in the terminal, btop is the pick, and the entry says so. Every other tool is ranked for how well it replaces htop on a Mac, and where one does a job better, the entry says so. If something here is out of date, email us and we will fix it.
常见问题
Does htop work on a Mac?
Yes. Install it with Homebrew: brew install htop, then type htop in Terminal. It runs on Intel and Apple silicon Macs.
What is the Mac equivalent of htop?
Built in, it is top in Terminal and Activity Monitor as an app. top -o cpu sorts by CPU. htop itself also runs on a Mac once installed with Homebrew.
Is btop better than htop on a Mac?
For looking at a Mac, usually. btop adds graphs for network and disk, CPU temperature, battery and Apple silicon GPU figures. htop is plainer and is on almost every Unix machine, which is the reason to know it.
Does htop show GPU or temperature on a Mac?
No. btop shows CPU temperature and Apple silicon GPU use. mactop shows every temperature sensor and the power drawn by the CPU, GPU and Neural Engine, on Apple silicon only.
Is there an app like htop for Mac with a window?
Vitals. It lists apps instead of processes, with each app's helpers counted in, and opens an app to show its processes with their PIDs. It keeps 30 days of history, or up to a year, and sits in the menu bar.