Check running time of PID

If you want to find out from how much time a PID is active or running then you should the command below.

[root@server ~]# ps -ax -o etime,pid,cmd | grep -Ev 'sh -| grep' | grep
      03:05  5259 /bin/bash ./

The script above it’s running from 3 minutes.

Leave a Reply

Your email address will not be published. Required fields are marked *