Date Tags ps / linux
ps -eo pid,tty,user,cmd,stime,etime | grep python

e:全部进程 o:自定义显示字段 pid:进程号 user:用户 cmd:命令 stime:开始时间 etime:持续时间

 1099 ?        root  python -c from pyovpn.sagen 08:01    10:54:21
 1533 ?        root  /usr/bin/python3 /usr/share 08:01    10:53:59
 1545 ?        root  python3 /usr/bin/blueman-ap 08:01    10:53:59
 2043 ?        root  python /home/wuxqing/.nutst 08:02    10:53:29
 2901 pts/0    root  /usr/bin/python /usr/bin/ss 08:19    10:36:50
 4791 pts/9    root  grep --color=auto python    18:55       00:00
 9391 ?        root  /usr/bin/python /usr/bin/su 10:07    08:47:53

Comments