How to know how long a process has been running?
8,722
ps
can fit your needs:
ps -eo pid,command,etime
To get information for a specific process:
ps -o command,etime -p PID
Author by
Cees
Updated on September 18, 2022Comments
-
Cees over 1 year
Possible Duplicate:
How to check how a long a program has been running?I am interested in doing this purely using bash.