How to Check How Long a Process Has Been Running

There are times when you want to check how long a certain process has been running. If you have backup processes that can run for a while, the following command may be helpful.

$ sudo ps -p 32097 -o etime

Make sure you replace 32097 with the process ID on your machine.

The output looks like the following.

    ELAPSED
      53:29

Author: admin

A software engineer in greater Seattle area

Leave a Reply

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