用ps命令显示进程的详细信息
2010-05-28 16:50
495 查看
显示用户man,woman的进程
。
ps Uman,woman -o pid,user,sz,vsz,args, stat
每个进程显示 pid, user, size, virtual size, args命令名称。
以树形结构输出进程
ps --forest Uman
显示线程
$ps -Lf -Uroot | grep thread
$UID PID PPID LWP C NLWP STIME TTY TIME CMD
root 21000 1 21000 0 1 13:12 ? 00:00:00 gvim thread.c
root 21428 14644 21428 0 3 13:12 pts/53 00:00:00 ./thread
root 21428 14644 21429 0 3 13:12 pts/53 00:00:00 ./thread
root 21428 14644 21430 0 3 13:12 pts/53 00:00:00 ./thread
显示进程的属性
ps --forest -s 7088 -o stat,pid,ppid,pgid,sid,tpgid,comm
。
ps Uman,woman -o pid,user,sz,vsz,args, stat
每个进程显示 pid, user, size, virtual size, args命令名称。
以树形结构输出进程
ps --forest Uman
显示线程
$ps -Lf -Uroot | grep thread
$UID PID PPID LWP C NLWP STIME TTY TIME CMD
root 21000 1 21000 0 1 13:12 ? 00:00:00 gvim thread.c
root 21428 14644 21428 0 3 13:12 pts/53 00:00:00 ./thread
root 21428 14644 21429 0 3 13:12 pts/53 00:00:00 ./thread
root 21428 14644 21430 0 3 13:12 pts/53 00:00:00 ./thread
显示进程的属性
ps --forest -s 7088 -o stat,pid,ppid,pgid,sid,tpgid,comm
相关文章推荐
- Flash Builder 4:进程意外终止。 application descriptor not found 启动命令详细信息:
- Linux 命令 - top: 动态显示进程信息
- linux下查询进程命令 ps 详细分析
- Linux 命令 - ps: 显示当前进程的快照
- Linux学习笔记--ps命令(显示当前进程的命令)
- java调用CMD命令显示所有进程的信息
- Linux 查找指定名称的进程并显示进程详细信息
- Linux 查找指定名称的进程并显示进程详细信息
- 使用ps命令获取Linux环境下全部RAC集群进程信息
- Linux命令(25):ps命令-显示系统进程
- ps | grep app 命令不显示grep app本身进程的几种方式
- ps | grep app 命令不显示grep app本身进程的几种方式
- bmodinfo命令_Linux bmodinfo 命令用法详解:显示给定模块的详细信息
- 使用ps命令获取Linux环境下全部RAC集群进程信息
- Linux 查找指定名称的进程并显示进程详细信息
- XP里查看进程详细信息的命令
- 【RAC】使用一条“ps”命令获取Linux环境下全部RAC集群进程信息
- Linux 命令ps -aux|grep 详细信息
- Linux入职基础-5.22_命令ps显示进程状态(应用实战6)
- 查看系统的I/O使用iostat命令而使用iotop能够依据I/O统计信息排序,追踪到详细的进程