文章目录 查看进程启动时间脚本 脚本的使用方法 查看进程启动时间脚本 # /bin/bash # PS命令参数解析: # pid:进程ID user:用户 comm:进程名 lstart:开始时间 etime:运行时间 # 交互是查询,输入进程名字 read -p "请输入进程名字:" PNAME # 查看进程的启动时间 lstart=`ps -eo user,pid,lstart,etime,command |grep $PNAME | awk '/root/{print $3,