如何查看正在运行进程的PID(linux shell基础)

1、启动demo程序

     ./demo.sh      

2、查看demo进程PID

     ps -ef | grep demo

     输出结果

=================================================     

     UID     PID    PPID  C STIME TTY       TIME        CMD

     xxx    5719   3699  0 23:37 pts/0    00:00:00 /bin/sh ./demo.sh

猜你喜欢

转载自hnsswjjxy-163-com.iteye.com/blog/909478