获取一个进程的启动时间

创建日期: 2022-11-09 10:32 | 作者: 风波 | 浏览次数: 15 | 分类: OS

来源:https://stackoverflow.com/questions/5731234/how-to-get-the-start-time-of-a-long-running-linux-process

命令:ps -eo pid,lstart,cmd

执行结果:

# ps -eo pid,lstart,cmd
  PID                  STARTED CMD
    1 Thu Oct 27 15:21:18 2022 /usr/lib/systemd/systemd --switched-root --system --deserialize 21
    2 Thu Oct 27 15:21:18 2022 [kthreadd]
    4 Thu Oct 27 15:21:18 2022 [kworker/0:0H]
    6 Thu Oct 27 15:21:18 2022 [ksoftirqd/0]
    7 Thu Oct 27 15:21:18 2022 [migration/0]
    8 Thu Oct 27 15:21:18 2022 [rcu_bh]
15 浏览
11 爬虫
0 评论