【学习总结】linux命令:ps -ef | grep xxxserver | grep -v grep|wc -l

格式

  • ps -ef | grep xxxserver | grep -v grep|wc -l

解析

  • ps -ef 指令用来查询所有进程

  • grep通过管道来过滤

  • grep -v 是反向查询的意思,grep -v grep的作用是除去包含grep的项。

END

原文地址:https://www.cnblogs.com/anliux/p/12927054.html