linux view process specific time

View the exact time of the process:

[root@al2-szc-ecs-fp-mgm-p02 log]# ps -eo pid,lstart,etime,cmd | grep java |grep -v grep
4014 Fri Aug 2 16:13:45 2019 255-18:20:17 java -Xmx1024m -Xms512m -Djava.io.tmpdir=/home/sapdevuser1/device-journal/tmp -jar /home/sapdevuser1/device-journal/rydevice-center-journal.jar --spring.profiles.active=prod

 

Resolution:

-o formatted output

pid:4014

lstart: Start time Fri Aug 2 16:13:45 2019 

etime: The process starts to the current time 255-18: 20: 17 (255 represents days and then hours, minutes and seconds)

cmd: start command

 

Guess you like

Origin www.cnblogs.com/thirteen-yang/p/12696420.html
Recommended