linux 查看进程启动时间包含时分秒

xiaoxiao2021-02-28  89

# ps -eo pid,cmd,lstart | head   PID CMD                                          STARTED     1 /sbin/init                  Sat Jun 10 04:43:28 2017     2 [kthreadd]                  Sat Jun 10 04:43:28 2017     3 [migration/0]               Sat Jun 10 04:43:28 2017     4 [ksoftirqd/0]               Sat Jun 10 04:43:28 2017     5 [stopper/0]                 Sat Jun 10 04:43:28 2017     6 [watchdog/0]                Sat Jun 10 04:43:28 2017     7 [migration/1]               Sat Jun 10 04:43:28 2017     8 [stopper/1]                 Sat Jun 10 04:43:28 2017

    9 [ksoftirqd/1]               Sat Jun 10 04:43:28 2017

过滤进程

# ps -eo pid,cmd,lstart |  grep 进程ID

个人站原文地址:http://www.itdouzi.com/linux-shell/6166.html

转载请注明原文地址: https://www.6miu.com/read-70844.html

最新回复(0)