linux下查看一个进程的启动时间和运行时间
使用 ps命令 :#ps -A -opid,stime,etime,args
ps -A -opid,stime,etime,args
结果:
root:src# ps -A -opid,stime,etime,args PID STIME ELAPSED COMMAND 1 09:21 08:56:14 init [3] 2 09:21 08:56:14 [migration/0] 3 09:21 08:56:14 [ksoftirqd/0] 4 09:21 08:56:14 [watchdog/0] 5 09:21 08:56:14 [events/0] 6 09:21 08:56:14 [khelper] 7 09:21 08:56:14 [kthread] 10 09:21 08:56:14 [kblockd/0] 11 09:21 08:56:14 [kacpid] 47 09:21 08:56:14 [cqueue/0]
作 者:fengbohello
个人网站:http://www.fengbohello.top/
E-mail : fengbohello@foxmail.com
欢迎转载,转载请注明作者和出处。
因作者水平有限,不免出现遗漏和错误。希望热心的同学能够帮我指出来,我会尽快修改。愿大家共同进步,阿里嘎多~
浙公网安备 33010602011771号