How Do You Tell How Long a Process Has Been Running Linux?
Contents How Do You Check How Long a Process Has Been Running Linux? If You Want to Figure out How Long a Process Has Been Running in Linux for Some Reason. We...
Contents
How do you check how long a process has been running 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.
Must Read
How do I see processes running time?
Linux Commands to Find Process Runtimes
- Step 1: Find Process id by Using the ps Command. $ ps -ef | grep java. …
- Step 2: Find the Runtime or Start Time of a Process. Once you have the PID, you can look into proc directory for that process and check the creation date, which is when the process was started.