来源: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]