1. 首页
  2. 数据库
  3. 其它
  4. linux命令查询进程与去掉grep并计算行数

linux命令查询进程与去掉grep并计算行数

上传者: 2021-01-15 14:19:42上传 PDF文件 24.68KB 热度 16次
分析该命令: ps aux |grep znetanalysis_fang_2.0 |grep -v grep |wc -l ps aux |grep查询某个进程,但是要注意:通常在使用 ps命令后 用管道连接 查询特定进程会显示 grep进程本身,如下图所示: [root@ecs-linux-byx ~]# ps -ef|grep gs4 root 13932 953 0.0 1081352 7720 ? Ssl 14:23 74:59 /home/gs4 root 15377 0.0 0.0 112712 980 pts/4 S+
下载地址
用户评论