1、查看进程的启动时间和执行时间
使用 ps 命令 :#ps -A -opid,stime,etime,args
$ ps -A -opid,stime,etime,args
PID STIME ELAPSED COMMAND
1 May23 6-17:49:02 /sbin/init
2 May23 6-17:49:02 [kthreadd]
3 May23 6-17:49:02 [migration/0]
4 May23 6-17:49:02 [ksoftirqd/0]
5 May23 6-17:49:02 [migration/0]
6 May23 6-17:49:02 [watchdog/0]
7 May23 6-17:49:02 [migration/1]
8 May23 6-17:49:02 [migration/1
2、查看线程 # ps -eLf
# ps -eLf UID PID PPID LWP C NLWP STIME TTY TIME CMD root 1 0 1 0 1 May23 ? 00:00:00 /sbin/init root 39 2 39 0 1 May23 ? 00:00:03 [bdi-default] root 40 2 40 0 1 May23 ? 00:00:00 [kintegrityd/0] root 41 2 41 0 1 May23 ? 00:00:00 [kintegrityd/1] root 42 2 42 0 1 May23 ? 00:00:00 [kintegrityd/2] root 43 2 43 0 1 May23 ? 00:00:00 [kintegrityd/3] root 44 2 44 0 1 May23 ? 00:00:00 [kintegrityd/4] root 45 2 45 0 1 May23 ? 00:00:00 [kintegrityd/5]
作者:风波
email :fengbohello@qq.com