Linux how long a process has been running?

Originally published at:

I’m a new Linux system user and developer running Ubuntu server. How do I check how long a process or pid has been running on my Ubuntu or CentOS Linux server?

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki