1、pgrep 是通过程序的名字来查询进程的工具,一般是用来判断程序是否正在运行。

2、说明

pgrep 参数选项   程序名

look up processes based on name and other

3、option

-l  列出程序名和进程ID

-o  进程起始的ID

-n  进程终止的ID

4、示例

pgrep -l httpd

参考

1http://www.linuxsir.org/main/node/210

http://linux.die.net/man/1/pgrep

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案