pgrep 查询进程的工具
2013-06-27 17:27
323 查看
pgrep 是通过程序的名字来查询进程的工具,一般是用来判断程序是否正在运行。在服务器的配置和管理中,这个工具常被应用,简单明了;
用法:
#ps 参数选项 程序名
常用参数
-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
用法:
#ps 参数选项 程序名
常用参数
-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 查询进程的工具
- pgrep 查询进程的工具
- ps监视进程工具和pgrep查询进程工具
- pgrep 查询进程的工具
- NetHogs实时进程流量查询工具
- 查看进程PID专用工具-------pgrep
- 通过AIX性能工具,查询最耗资源的oracle进程
- 通过AIX性能工具,查询最耗资源的oracle进程
- (oracle)删除数据库工具或用plsqlde工具打开报错ORA-01219: 数据库未打开: 仅允许在固定表/视图中查询(real)
- Oracle数据库锁表查询以及解锁进程
- 淘宝客推广链接在线生成工具发布了,精准查询你要推广的产品
- 命令查询进程信息 wmic
- 进程查看工具
- 分布式查询工具-Apache Drill
- [2017-08-09]一则使用WinDbg工具调试iis进程调查内存占用过高的案例
- 网站关键字排名查询工具
- supervisor - Python进程管理工具
- Android使用ethtool工具查询/设置以太网网卡状态
- linux 根据端口号查询进程
- ubuntu (linux) 中的进程状态查询与管理 top/htop/ps/pgrep/kill