ps aux:查看全部进程的完整快照

使用经典的 ps aux 命令列出系统所有进程,包含所属用户、CPU、内存和命令列。

Linux进程监控终端低风险
运行 ps aux(或 ps aux | less),即可列出所有进程的 USER、PID、%CPU、%MEM 和 COMMAND 列;按 CPU 排序可用 ps aux --sort=-%cpu | head。

01命令

命令
$ ps aux

02作用说明

这三个字母组合去掉了默认过滤:a 显示所有用户的进程,x 包含没有控制终端的进程(守护进程),u 表示使用面向用户的输出格式。输出列依次为 USER(属主)、PID(进程号)、%CPU(CPU 占比)、%MEM(物理内存占比)、VSZ/RSS(虚拟/常驻内存)、STAT(状态)和 COMMAND(命令行)。ps 是一次性快照而非实时监控——需要持续刷新的视图请用 top 或 htop。

03风险

风险低风险

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • Ubuntu Manpage: ps - report a snapshot of the current processes
    manpages.ubuntu.com · technical · 2026-09-17
    依据: "ps displays information about a selection of the active processes"; the u option selects the user-oriented format with USER, %CPU, %MEM, and COMMAND headers.
  • ps - report a snapshot of the current processes
    man7.org · technical · 2026-09-17
    依据: The ps page documents the a, u, and x options ("u Display user-oriented format" including USER, %CPU, %MEM, and COMMAND columns) and describes ps as reporting "a snapshot of the current processes".

最后验证: 2026-09-19 · 分类: 系统与设置

06相关方案