編碼的世界 / 優質文選 / 生物

linux下grep查找進程


2022年1月07日
-   

1、查找指定進程
 ps -ef | grep mmp-front //mmp-front是進程關鍵字


第一條記錄是查找出的進程;第二條結果是grep進程本身,並非真正要找的進程。
2、查找指定進程個數
ps -ef | grep mmp-front -c 或者
ps -ef | grep -c mmp-front


3、不顯示本身進程
 ps -aux | grep mmp-front


 ps -aux | grep mmp-front | grep -v "grep"


ps -aux | grep [m]mp-front

熱門文章