Linux check how long a process has been running on a server

Fig.01: Linux check how long a openvpn process has been running on a server

Fig.01: Linux check how long a openvpn process has been running on a server

How do you check how long a openvpn or any other process has been running on a server? First you find out the PID of the process you want to check. To find out the PID of openvpn process, enter:
$ pidof openvpn
To see elapsed time of the openvpn PID, enter:
ps -p 6176 -o etimes=
ps -p 6176 -o etimes

Examples and usage: Linux how long a process has been running?