-
pgrep
鎖定
pgrep是通過程序的名字來查詢進程的工具,一般是用來判斷程序是否正在運行。在服務器的配置和管理中,這個工具常被應用,簡單明瞭。
- 中文名
- pgrep
- 簡 介
- pgrep 是通過程序的名字來
- 用 法
- #pgrep 參數選項 程序名
- 用法2
- -l 列出程序名和進程ID;
用法
#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
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:10次歷史版本
- 最近更新: 禅山独立