linux下查看进程状态

1、查看进程的启动时间和执行时间

  使用 ps 命令 :#ps -A -opid,stime,etime,args

$ ps -A -opid,stime,etime,args
PID STIME ELAPSED COMMAND
May23 -:: /sbin/init
May23 -:: [kthreadd]
May23 -:: [migration/]
May23 -:: [ksoftirqd/]
May23 -:: [migration/]
May23 -:: [watchdog/]
May23 -:: [migration/]
May23 -:: [migration/

2、查看线程 # ps -eLf

# ps -eLf
UID PID PPID LWP C NLWP STIME TTY TIME CMD
root May23 ? :: /sbin/init
root May23 ? :: [bdi-default]
root May23 ? :: [kintegrityd/]
root May23 ? :: [kintegrityd/]
root May23 ? :: [kintegrityd/]
root May23 ? :: [kintegrityd/]
root May23 ? :: [kintegrityd/]
root May23 ? :: [kintegrityd/]
上一篇:SAX解析XML


下一篇:用户和组的管理