Unix/Linux Find For How Long a Process Was Running

Unix/Linux Find For How Long a Process Was Running

First, find out the process is (PID) of the process you are interested in. Next, use the following command: ps -o etime= -p $PID (replace $PID by the actual PID)