View the process running time in CentOS

Source: Internet
Author: User
You can view it through ps. you can view it through the-o parameter, for example, ps-eopid, tty, user, comm, lstart, etime | grepinit parameter description: pid: process IDtty: Terminal user: user comm: Process name lstart: Start time etime: run time run result: 1? &

You can view it through ps, and through parameter-o.

Example: ps-eo pid, tty, user, comm, lstart, etime | grep init

Parameter description:

Pid: Process ID

Tty: Terminal

User: user

Comm: Process name

Lstart: start time

Etime: Running time

The running result is as follows:

1? Root init Tue Sep 3 15:17:30 2013 12-22:50:44

Pid: 1

Tty :?

User: root

Comm: init

Lstart: Tue Sep 3 15:17:30 2013 [Start time: 2013-9-3 15:17:30 Tuesday]

Etime: 12-22:50:44 [run time: 12 days 22 hours 50 minutes 44 seconds]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.