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

来源:互联网 发布:linux进行远程登录命令 编辑:程序博客网 时间:2024/06/05 15:36
# 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


原创粉丝点击