Friday, August 4, 2017

How long the process is running ?


How long the process is running ?

ps -o etime= -p  <pid of process>



Example:
# ps -o etime= -p 15245
      00:26

Where 15245 is PID of the process we want to check.
it's running for past 26 seconds.

No comments:

Post a Comment