linux查看进程

HarmonyOS

  1、查看 linux 进程,可以通过 ps 命令来实现。ps- aux (Linux)2、 ps- aux 后面的数字是一个命令,可以表示一条指令。ps:\/ bin/ bash3、 ps- aux 命令的语法格式: ps- aux[ pid][ executor="# id"]
ps- aux 主要用于查询某一个特定进程的 pid 信息。比如,我们想知道 pid 为3385的进程的进程 ID 是多少?就可以使用 ps- aux 命令。
ps- aux 这里的 pid 是指进程 id, executor 是指执行该指令的进程 id。如果 pid 不存在,则会报错。
4、另外,我们还可以使用 lsof 命令来查看进程信息。lsofs.
5、或者使用 procinfodfg 命令来查看进程信息。

标签: HarmonyOS