pgrep 查询进程的工具
2012-03-27 09:41
162 查看
pgrep 是通过程序的名字来查询进程的工具,一般是用来判断程序是否正在运行。在服务器的配置和管理中,这个工具常被应用,简单明了;
用法:
#pgrep 参数选项 程序名
常用参数
-l 列出程序名和进程ID;
-o 进程起始的ID;
-n 进程终止的ID;
举例:
[root@localhost ~]# pgrep -lo httpd
4557 httpd
[root@localhost ~]# pgrep -ln httpd
4566 httpd
[root@localhost ~]# pgrep -l httpd
4557 httpd
4560 httpd
4561 httpd
4562 httpd
4563 httpd
4564 httpd
4565 httpd
4566 httpd
[root@localhost ~]# pgrep httpd
4557
4560
4561
4562
4563
4564
4565
4566
用法:
#pgrep 参数选项 程序名
常用参数
-l 列出程序名和进程ID;
-o 进程起始的ID;
-n 进程终止的ID;
举例:
[root@localhost ~]# pgrep -lo httpd
4557 httpd
[root@localhost ~]# pgrep -ln httpd
4566 httpd
[root@localhost ~]# pgrep -l httpd
4557 httpd
4560 httpd
4561 httpd
4562 httpd
4563 httpd
4564 httpd
4565 httpd
4566 httpd
[root@localhost ~]# pgrep httpd
4557
4560
4561
4562
4563
4564
4565
4566
相关文章推荐
- pgrep 查询进程的工具
- ps监视进程工具和pgrep查询进程工具
- pgrep 查询进程的工具
- pgrep 查询进程的工具
- 通过AIX性能工具,查询最耗资源的oracle进程
- 通过AIX性能工具,查询最耗资源的oracle进程
- 查看进程PID专用工具-------pgrep
- NetHogs实时进程流量查询工具
- Linux下取代top的进程管理工具 htop
- Windows下查看进程与线程的相关工具
- 最近刚搞的一个域名搜索查询工具,使用超方便!
- 获取windows进程列表,并以字符串形式查询是否存在某一进程
- 物流配送进程快递100查询接口
- 进程管理工具:htop、glances和dstat
- 使用SQL*Plus查询工具连接Oracle数据库
- 域名批量查询工具实测
- RestartOnCrash一个监控进程的小工具,可用于监控iis/apache/mysql等程序
- 查询Sqlserver数据库死锁的一个存储过程 (查杀死锁进程)
- 2008.09.18更新关键词排名查询和站长工具
- 查询端口号和对应进程