我再top看到了我的后台下载程序一直在下载,想知道这个进程运行了多久
借鉴 https://www.cnblogs.com/thirteen-yang/p/12696420.html
ps -eo pid,lstart,etime,cmd | grep node |grep -v grep
-o 格式化输出
pid:974
lstart:启动时间 Sat Oct 9 15:16:20 2021
etime:进程启动到当前的时间 05:52:12( 最前面代表天然后时分秒)
cmd:启动命令