How Do I Find Long Running Processes in Unix?
Contents How Do You Find out How Long a Process Has Been Running in Linux? If You Want to Figure out How Long a Process Has Been Running in Linux for Some...
How do you find out how long a process has been running in Linux?
If you want to figure out how long a process has been running in Linux for some reason. We can easily check with the help of “ps” command. It shows, the given process uptime in the form of [[DD-]hh:]mm:ss, in seconds, and exact start date and time. There are multiple options are available in ps command to check this.
How do I see processes running time?
Check running process time using ps
You need to first find process ID then use it to find elapsed time. Then use ps with options -o etime to find elapsed running time. etime option displays elapsed time since the process was started, in the form [[DD-]hh:]mm: ss.