Monday 31 January 2022

Linux: ps command for processes older processes

 To get the exact start time of an old process, use below:


[steaua@TESTDB]/u01/app/oracle >ps -eo pid,lstart,cmd|grep 20734

20734 Wed Nov 17 01:59:02 2021 ora_pmon_TESTDB


Otherwise we'll get the year only:


[steaua@TESTDB]/u01/app/oracle >ps -ef|grep 20734 |grep -v grep

oracle   20734     1  0  2021 ?        00:41:46 ora_pmon_TESTDB