How to Check Elapsed Time for a running process in Linux

How to Check Elapsed Time for a running process in Linux

We can Check the elapsed time for an already running process with a simple command as shown below:-

[root@how2install ~]# ps -eo "%c %p %t"|grep "ssh"
sshd             5095       49:04 
sshd 5848 47:47
sshd 5872 47:30

In this Command %c indicates the deamon name, %p shows the process-id & %t will show the time-elapsed.

Leave a Reply

Time limit is exhausted. Please reload the CAPTCHA.